CVE-2022-24897 json
Arbitrary filesystem write access from Velocity
published 2022-04-28 4 y ago modified 2026-06-17 4 mo ago also GHSA-cvx5-m8vg-vxgc , EUVD-2022-1713
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.xwiki.commons:xwiki-commons-velocity 12.6.7, 12.10.3
- xwiki xwiki 12.6.7, 12.10.3
- github.com/xwiki/xwiki-commons@215951c commit
- github.com/xwiki/xwiki-commons#127 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.79% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- jira.xwiki.org https://jira.xwiki.org/browse/XWIKI-5168 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| 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 |
Affected products
- xwiki xwiki-commons
Classification
References
-
github.com
/xwiki/xwiki-commons/pull/127
web, patch, third-party-advisory
-
github.com
/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8
web, patch, third-party-advisory
-
jira.xwiki.org
/browse/XWIKI-5168
web, exploit, vendor-advisory
-
github.com
/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24897
advisory
-
github.com
/xwiki/xwiki-commons
package
Sources
- CVE List CVE-2022-24897
- GitHub Advisory GHSA-cvx5-m8vg-vxgc
- NVD CVE-2022-24897
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.