[MAVEN:GHSA-CVX5-M8VG-VXGC] Arbitrary filesystem write access from velocity.

Severity High
Affected Packages 2
Fixed Packages 2
CVEs 1

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
* Email us at XWiki Security mailing-list

ID
MAVEN:GHSA-CVX5-M8VG-VXGC
Severity
high
URL
https://github.com/advisories/GHSA-cvx5-m8vg-vxgc
Published
2022-04-28T21:16:40
(2 years ago)
Modified
2023-01-30T05:00:28
(19 months ago)
Rights
Maven Security Team
Type Package URL Namespace Name / Product Version Distribution / Platform Arch Patch / Fix
Affected pkg:maven/org.xwiki.commons/xwiki-commons-velocity org.xwiki.commons xwiki-commons-velocity >= 12.7.0 < 12.10.3
Fixed pkg:maven/org.xwiki.commons/xwiki-commons-velocity org.xwiki.commons xwiki-commons-velocity = 12.10.3
Affected pkg:maven/org.xwiki.commons/xwiki-commons-velocity org.xwiki.commons xwiki-commons-velocity >= 2.3.0 < 12.6.7
Fixed pkg:maven/org.xwiki.commons/xwiki-commons-velocity org.xwiki.commons xwiki-commons-velocity = 12.6.7
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories Exploits PoC Pubblication Date Modification Date
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories PoC Pubblication Date Modification Date
Loading...