CVE-2022-24897: Arbitrary 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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2022-24897?
CVE-2022-24897 has been rated as a high severity vulnerability due to improper sandboxing that could lead to unauthorized file operations.
How do I fix CVE-2022-24897?
To fix CVE-2022-24897, update your XWiki installation to version 12.6.7, 12.10.3, or 13.0 or later.
Which versions of XWiki are affected by CVE-2022-24897?
Versions of XWiki starting from 2.3 up to 12.6.7, 12.10.3, and 13.0 are affected by CVE-2022-24897.
What kind of operations can be exploited in CVE-2022-24897?
CVE-2022-24897 can be exploited to perform unauthorized read or write operations using the Java File API.
Is CVE-2022-24897 a type of code injection vulnerability?
CVE-2022-24897 is not a traditional code injection vulnerability, but it can allow unauthorized access to the file system through malicious scripts.