cve.bz

CVE-2022-24897

7.5 highEPSS 1.8%

High (7.5) in xwiki xwiki. EPSS 1.8% chance of exploitation in the next 30 days. Fixed in org.xwiki.commons:xwiki-commons-velocity 12.10.3, 12.6.7.

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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.8% chance of exploitation in the next 30 days; higher than 78% of CVEs (scores of 2026-10-31)
CWE
CWE-22
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cvx5-m8vg-vxgcMavenorg.xwiki.commons:xwiki-commons-velocity>=2.3.0 <12.6.712.6.7
GHSA-cvx5-m8vg-vxgcMavenorg.xwiki.commons:xwiki-commons-velocity>=12.7.0 <12.10.312.10.3

References

Check your stackJSON