{"id":"CVE-2022-24897","published":"2022-05-02T21:49:17Z","modified":"2025-04-22T18:02:07Z","title":"Arbitrary filesystem write access from Velocity","vendor":"xwiki","product":"xwiki-commons","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01761,"percentile":0.78451,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-commons/pull/127","tags":["x_refsource_MISC"]},{"url":"https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-5168","tags":["x_refsource_MISC"]}],"priority":{"score":20.9,"factors":[{"name":"EPSS percentile","points":15.69},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-commons","versions":[">= 2.3, < 12.6.7","12.7-rc-1, < 12.10.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:43:18.628461Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.xwiki.commons:xwiki-commons-velocity","vulnerableRanges":[">=2.3.0, <12.6.7",">=12.7.0, <12.10.3"],"patched":["12.6.7","12.10.3"],"from":["GHSA-cvx5-m8vg-vxgc"],"provenance":"source"}],"summary":{"text":"The flaw is in xwiki-commons, the XWiki package for evaluating content with Velocity, where the Velocity scripts are not properly sandboxed against the Java File API, allowing read and write operations on the filesystem. An attacker needs the Script right in XWiki to write a malicious Velocity script, and must also find an XWiki API that returns a File object, with the attack reaching the filesystem over the network under low-privilege authentication and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:12:41Z"},"euvd":{"id":"EUVD-2022-1713","exploited":false,"provenance":"source"}}