Skip to main content
← All vulnerabilities
CVE-2022-24897GHSA-CVX5-M8VG-VXGC

Arbitrary filesystem write access from Velocity

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 12.6.7, 12.10.3
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • xwiki xwiki-commons

    From 2.3 · fixed in 12.6.7

  • org.xwiki.commons:xwiki-commons-velocityMaven

    From 2.3.0 · fixed in 12.6.7

  • org.xwiki.commons:xwiki-commons-velocityMaven

    From 12.7.0 · fixed in 12.10.3

References 5

GitHub · xwiki/xwiki-commons

jira.xwiki.org

GitHub · shoucheng3/xwiki__xwiki-commons_CVE-2022-24897_12-6-6