logo

CVE-2022-24897 org.xwiki.commons:xwiki-commons-velocity

Package

Manager: maven
Name: org.xwiki.commons:xwiki-commons-velocity
Vulnerable Version: >=2.3.0 <12.6.7 || >=12.7.0 <12.10.3

Severity

Level: High

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

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

EPSS: 0.00408 pctl0.6037

Details

Arbitrary filesystem write access from velocity. ### Impact The velocity scripts is not properly sandboxed against using the Java File API to perform read or write operations on the filesystem. Now 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. ### Patches The problem has been patched on versions 12.6.7, 12.10.3 and 13.0RC1. ### Workarounds There's no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights. ### References https://jira.xwiki.org/browse/XWIKI-5168 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira XWiki](https://jira.xwiki.org) * Email us at [XWiki Security mailing-list](mailto:security@xwiki.org)

Metadata

Created: 2022-04-28T21:16:40Z
Modified: 2022-04-28T21:16:40Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-cvx5-m8vg-vxgc/GHSA-cvx5-m8vg-vxgc.json
CWE IDs: ["CWE-22", "CWE-668"]
Alternative ID: GHSA-cvx5-m8vg-vxgc
Finding: F063
Auto approve: 1