High

Arbitrary filesystem write access from velocity.

  • Disclosed: 28.04.2022
  • Updated: 11.10.2026 11:21

Impact

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.

Patches

The problem has been patched on versions 12.6.7, 12.10.3 and 13.0RC1.

Workarounds

There's no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights.

References

https://jira.xwiki.org/browse/XWIKI-5168

For more information

If you have any questions or comments about this advisory:

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.xwiki.commons:xwiki-commons-velocity >= 2.3.0, < 12.6.7, >= 12.7.0, < 12.10.3 12.6.7, 12.10.3

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-22, CWE-668
Platform
Java / Kotlin (Maven)
Package
org.xwiki.commons:xwiki-commons-velocity
Disclosed
28.04.2022
Updated
11.10.2026 11:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-cvx5-m8vg-vxgc - CC BY 4.0

Vulnerability history: org.xwiki.commons:xwiki-commons-velocity

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
04.2022 04.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 1

Disclosures per year

  1. 2022: 1
  2. 2023: 0
  3. 2024: 1
  4. 2025: 0
  5. 2026: 0
  1. Critical · 10.0 CVE-2024-31996 >= 3.0.1, < 14.10.19, >= 15.0-rc-1, < 15.5.4, >= 15.6-rc-1, < 15.9-rc-1 14.10.19, 15.5.4, 15.9-rc-1
  2. Arbitrary filesystem write access from velocity. this entry
    High · 7.5 CVE-2022-24897 >= 2.3.0, < 12.6.7, >= 12.7.0, < 12.10.3 12.6.7, 12.10.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.