7.5
CWE
22
Advisory Published
Updated

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

First published: Mon May 02 2022(Updated: )

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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Xwiki>=2.3<12.6.7
Xwiki>=12.7<12.10.3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203