Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.commons/xwiki-commons-velocity
  4. ›
  5. GMS-2022-1102

GMS-2022-1102: Arbitrary filesystem write access from velocity.

April 28, 2022

The velocity scripts is not properly sandboxed against using the Java File API to perform read or write operations on the filesystem. Now writing an attacking script in velocity requires the Script rights in XWiki so not all users can use it, and it also requires finding an XWiki API which returns a File.

References

  • github.com/advisories/GHSA-cvx5-m8vg-vxgc
  • github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc
  • jira.xwiki.org/browse/XWIKI-5168

Code Behaviors & Features

Detect and mitigate GMS-2022-1102 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.3.0 before 12.6.7, all versions starting from 12.7.0 before 12.10.3

Fixed versions

  • 12.6.7
  • 12.10.3

Solution

Upgrade to versions 12.6.7, 12.10.3 or above.

Source file

maven/org.xwiki.commons/xwiki-commons-velocity/GMS-2022-1102.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:00 +0000.