Arbitrary filesystem write access from Velocity
CVE-2022-24897
Key facts
CVE-2022-24897 is a high severity (CVSS 7.5) vulnerability in xwiki-commons. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 1.7%, the estimated probability of exploitation in the next 30 days. Fixed in xwiki-commons 2.3, 12.6.7, 12.7-rc-1, 12.10.3.
How risky is it?
- Partly: Works over the network, but needs a login
- No: No public exploit code yet
- No: No attacks seen yet
- No: Not on CISA's exploited list
Our verdict
Check today
Find out if you're affected. If you are, patch.
What to do
1Update to a fixed version
Upgrade to one of these versions or later:
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach xwiki-commons. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Check today"
- Its CVSS severity is high (7.5).
What is CVE-2022-24897?
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.
Affected Version(s)
xwiki-commons >= 2.3, < 12.6.7 < 2.3, 12.6.7
xwiki-commons 12.7-rc-1, < 12.10.3 < 12.7-rc-1, 12.10.3