CVE-2022-24898 Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml

Medium 4.9 Published Updated

Attackers can read arbitrary files on the server via XML External Entity injection in the XWiki commons XML script service.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-24898?

CVE-2022-24898 is a medium-severity vulnerability in xwiki-commons, published on 28 Apr 2022. An attacker needs administrator access to exploit it, with no action from the victim.

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.

Weakness: CWE-611

Which versions are affected by CVE-2022-24898?

6 open source packages ship an affected version, including org.xwiki.commons:xwiki-commons-xml. It affects 1 product.

PackageAffectedFixed in
org.xwiki.commons:xwiki-commons-xml MavenFrom 13.0.013.4.4
org.xwiki.commons:xwiki-commons-xml MavenFrom 13.0.013.4.4
org.xwiki.commons:xwiki-commons-xml MavenFrom 13.5-rc-113.8-rc-1
org.xwiki.commons:xwiki-commons-xml MavenFrom 13.5-rc-113.8-rc-1
org.xwiki.commons:xwiki-commons-xml MavenFrom 2.712.10.10
org.xwiki.commons:xwiki-commons-xml MavenFrom 2.712.10.10

Products include Xwiki Commons.

How do I fix CVE-2022-24898?

Upgrade org.xwiki.commons:xwiki-commons-xml to a fixed version for your release line: 13.4.4, 13.8-rc-1 or 12.10.10.

Is CVE-2022-24898 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24898 exists.

Sources

Also known as GHSA-m2r5-4w96-qxg5.

Is CVE-2022-24898 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free