CVE-2022-24897

HIGH

Xwiki < 12.6.7 - Path Traversal

Title source: rule

Description

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.

Exploits (1)

nomisec WRITEUP
by shoucheng3 · poc
https://github.com/shoucheng3/xwiki__xwiki-commons_CVE-2022-24897_12-6-6

Scores

CVSS v3 7.5
EPSS 0.0027
EPSS Percentile 50.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-22
Status published
Products (2)
org.xwiki.commons/xwiki-commons-velocity 2.3.0 - 12.6.7Maven
xwiki/xwiki 2.3 - 12.6.7
Published May 02, 2022
Tracked Since Feb 18, 2026