Security mailing lists by PureSourceCode

CVE-2022-24897

HIGH 7.5CVSS 3.1

Arbitrary filesystem write access from velocity.

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.

Published
2 May 2022
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-22CWE-668
Also known as
GHSA-cvx5-m8vg-vxgc
Sources
NVDJSONOSV GHSA-cvx5-m8vg-vxgcJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.0 AV:N/AC:M/Au:S/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD xwiki xwiki
cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
>= 2.3, < 12.6.7 12.6.7
NVD xwiki xwiki
cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
>= 12.7, < 12.10.3 12.10.3
OSV Maven org.xwiki.commons:xwiki-commons-velocity >= 2.3.0, < 12.6.7 12.6.7
OSV Maven org.xwiki.commons:xwiki-commons-velocity >= 12.7.0, < 12.10.3 12.10.3

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 2 May 2022)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 28 Apr 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.