Live threats

All CVEs / Xwiki

CVE-2022-24897Xwiki

High 7.5

Priority
45
CVSS 3.1
7.5
EPSS
1.8%
probability of exploitation in 30 days · percentile 79
Auth required
Yes
Published
May 2, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Xwiki.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.xwiki.commons:xwiki-commons-velocity ≥ 2.3.0 < 12.6.7 12.6.7 —
Maven org.xwiki.commons:xwiki-commons-velocity ≥ 12.7.0 < 12.10.3 12.10.3 —

Per OSV / GitHub Advisories (GHSA-cvx5-m8vg-vxgc). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
xwikixwiki≥ 2.3 < 12.6.7
xwikixwiki≥ 12.7 < 12.10.3

Official sources

References

Links published by the sources. Open them with care.