Vulnerabilities · 2022 · Xwiki
CVE-2022-24897
Xwiki vulnerability
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 products
Xwiki. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Xwiki runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- jira.xwiki.org/browse/XWIKI-5168 · Exploit
- github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8 · Patch
- github.com/xwiki/xwiki-commons/pull/127 · Patch
- github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-24897
- cve.org/CVERecord?id=CVE-2022-24897
More vulnerabilities in Xwiki products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.