{"cve":"CVE-2022-24897","nvd":{"published":"2022-05-02T22:15:09.767","modified":"2026-06-17T04:32:45.360","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5},"cwes":["CWE-22"],"references":["https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8","https://github.com/xwiki/xwiki-commons/pull/127","https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc","https://jira.xwiki.org/browse/XWIKI-5168","https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8"],"products":["xwiki:xwiki"],"source":"nvd","synced_at":"2026-10-19T21:30:03.577988018+00:00"},"epss":{"cve":"CVE-2022-24897","score":0.0179,"percentile":0.78365,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-cvx5-m8vg-vxgc","url":"https://osv.dev/vulnerability/GHSA-cvx5-m8vg-vxgc","summary":"Arbitrary filesystem write access from velocity.","modified":"2023-11-08T04:08:39.721181Z","packages":[{"ecosystem":"Maven","name":"org.xwiki.commons:xwiki-commons-velocity","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-velocity","ranges":[">=2.3.0 <12.6.7"],"fixed":["12.6.7"]},{"ecosystem":"Maven","name":"org.xwiki.commons:xwiki-commons-velocity","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-velocity","ranges":[">=12.7.0 <12.10.3"],"fixed":["12.10.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}