CVE-2022-24897
HIGH 7.5CVSS 3.1Arbitrary filesystem write access from velocity.
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.
- Published
- 2 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22CWE-668
- Also known as
- GHSA-cvx5-m8vg-vxgc
- Sources
- NVDJSONOSV GHSA-cvx5-m8vg-vxgcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | xwiki | xwikicpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* |
>= 2.3, < 12.6.7 | 12.6.7 |
| NVD | xwiki | xwikicpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* |
>= 12.7, < 12.10.3 | 12.10.3 |
| OSV | Maven | org.xwiki.commons:xwiki-commons-velocity | >= 2.3.0, < 12.6.7 | 12.6.7 |
| OSV | Maven | org.xwiki.commons:xwiki-commons-velocity | >= 12.7.0, < 12.10.3 | 12.10.3 |
References
- https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8 · Patch, Third Party Advisory, WEB
- https://github.com/xwiki/xwiki-commons/pull/127 · Patch, Third Party Advisory, WEB
- https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc · Third Party Advisory, WEB
- https://jira.xwiki.org/browse/XWIKI-5168 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24897 · ADVISORY
- https://github.com/xwiki/xwiki-commons · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 2 May 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 28 Apr 2022)