# CVE-2022-24897: Arbitrary filesystem write access from Velocity

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.79%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-28T21:16:40.000Z
- Modified: 2026-06-17T04:32:45.360Z
- Also known as: GHSA-cvx5-m8vg-vxgc
- Weaknesses: CWE-22, CWE-668
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xwiki xwiki-commons: >= 2.3, < 12.6.7; 12.7-rc-1, < 12.10.3
- org.xwiki.commons:xwiki-commons-velocity (Maven): from 2.3.0 before 12.6.7; from 12.7.0 before 12.10.3
- xwiki xwiki: from 2.3 before 12.6.7; from 12.7 before 12.10.3

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.0 Medium `AV:N/AC:M/Au:S/C:P/I:P/A:P`

## References

- <https://jira.xwiki.org/browse/XWIKI-5168> (exploit, vendor-advisory, web)
- <https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc> (third-party-advisory, web)
- <https://github.com/xwiki/xwiki-commons/pull/127> (patch, third-party-advisory, web)
- <https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24897> (advisory)
- <https://github.com/xwiki/xwiki-commons> (package)

## Sources

- CVE List: [CVE-2022-24897](https://www.cve.org/CVERecord?id=CVE-2022-24897), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-cvx5-m8vg-vxgc](https://github.com/advisories/GHSA-cvx5-m8vg-vxgc), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-24897](https://nvd.nist.gov/vuln/detail/CVE-2022-24897), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24897 · Whole record: https://cve.day/CVE-2022-24897.json · Rebuilt by cve.day 2026-11-25T22:58:11.350Z
