CVE-2022-24897

Arbitrary filesystem write access from Velocity

HIGH
7.5
CVSS Score
Published: May 2, 2022 at 09:49 PM UTC
Updated: June 17, 2026 at 04:32 AM UTC
1 product affected across 1 vendorXwiki

Using xwiki-commons by xwiki?

Get instant alerts when new vulnerabilities affect xwiki-commons - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 2%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 12.10.3v < 12.6.712.7 ≤ v < 12.10.32.3 ≤ v < 12.6.7
Affected range stops below 12.10.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 12.6.7, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCPoCNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card