Description
APIs to evaluate content with Velocity is a package for APIs to evaluate content with Velocity. Starting with version 2.3 and prior to 12.6.7, 12.10.3, and 13.0, the velocity scripts are not properly sandboxed against using the Java File API to perform read or write operations on the filesystem. 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. The problem has been patched in versions 12.6.7, 12.10.3, and 13.0. There is no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| xwiki | xwiki-commons | >= 2.3, < 12.6.7, 12.7-rc-1, < 12.10.3 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
shoucheng3/xwiki__xwiki-commons_CVE-2022-24897_12-6-6 ★ 0 · Aug 19, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.xwiki.commons:xwiki-commons-velocity | >= 2.3.0, < 12.6.7 | 12.6.7 | GHSA-cvx5-m8vg-vxgc |
| Maven | org.xwiki.commons:xwiki-commons-velocity | >= 12.7.0, < 12.10.3 | 12.10.3 | GHSA-cvx5-m8vg-vxgc |