WaratekVRT Sign in

CVE-2022-24897 XWiki

Affected softwareXWiki
Severity7.5 High CVSS 3.1 3 scores
Fixed in12.6.7, 12.10.3
WeaknessPath traversal (CWE-22)
Published2 May 2022
Updated17 Jun 2026

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.

CWE-668

Exploitation status

Proof of concept only

A proof of concept exists, but no reviewed exploit catalogue lists this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: poc CISA recorded that an exploit has been demonstrated. Automatable: no, technical impact: total.
  • Indexed PoC none indexed
  • EPSS 1.8% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR path-traversal security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-22: Path Traversal.
Candidate fix https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8 : a commit: the change itself

How to mitigate CVE-2022-24897

Upgrade XWiki to a release that fixes it: 12.6.7 or 12.10.3. Until you can, Waratek RASP blocks exploitation with its path traversal rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

7.5 HIGH v3.1 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
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 security-advisories@github.com Secondary published
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 NVD Primary
CVSS 2.0 6.0 none AV:N/AC:M/Au:S/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.xwiki.commons:xwiki-commons-velocity 2.3.0 12.6.7 unbounded
org.xwiki.commons:xwiki-commons-velocity 12.7.0 12.10.3 unbounded

Products and versions

2 products, 4 version entries
SourceVendorProductSchemeAffected versions
osv org.xwiki.commons xwiki-commons-velocity generic ≥ 2.3.0 and < 12.6.7 · ≥ 12.7.0 and < 12.10.3
nvd xwiki xwiki generic ≥ 2.3 and < 12.6.7 · ≥ 12.7 and < 12.10.3

References

URLTags
https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8 commit
https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc WEB
https://github.com/xwiki/xwiki-commons/pull/127 WEB
https://github.com/xwiki/xwiki-commons PACKAGE
https://jira.xwiki.org/browse/XWIKI-5168 WEB

Timeline

Published2022-05-02By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.