Vulnerability · Published Apr 28, 2022 · Assigned by GitHub_M
CVE-2022-24898Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml
Medium 4.9
In plain English
A medium-severity XML external entity in xwiki-commons from xwiki. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
org.xwiki.commons:xwiki-commons-xml is a common module used by other XWiki top level projects. Starting in version 2.7 and prior to versions 12.10.10, 13.4.4, and 13.8-rc-1, it is possible for a script to access any file accessing to the user running XWiki application server with XML External Entity Injection through the XML script service. The problem has been patched in versions 12.10.10, 13.4.4, and 13.8-rc-1. There is no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.xwiki.commons:xwiki-commons-xml | 12.10.10 | GHSA-m2r5-4w96-qxg5 |
| Maven | org.xwiki.commons:xwiki-commons-xml | 13.4.4 | GHSA-m2r5-4w96-qxg5 |
| Maven | org.xwiki.commons:xwiki-commons-xml | 13.8-rc-1 | GHSA-m2r5-4w96-qxg5 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| xwiki | xwiki-commons | >= 2.7, < 12.10.10>= 13.0, < 13.4.4>= 13.5-rc-1, <= 13.7 |
Weakness: CWE-611 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-m2r5-4w96-qxg5 x_refsource_CONFIRM
- https://github.com/xwiki/xwiki-commons/commit/947e8921ebd95462d5a7928f397dd1b64f77c7d5 x_refsource_MISC
- https://jira.xwiki.org/browse/XWIKI-18946 x_refsource_MISC