CVE-2018-11788 XML External Entity Reference in Apache Karaf

Critical 9.8 Published Updated

An attacker can exploit XML External Entity injection in Apache Karaf's features deployer to read sensitive files or cause denial of service.

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

What is CVE-2018-11788?

CVE-2018-11788 is a critical vulnerability in Apache Karaf, published on 7 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache Karaf provides a features deployer, which allows users to "hot deploy" a features XML by dropping the file directly in the deploy folder. The features XML is parsed by XMLInputFactory class. Apache Karaf XMLInputFactory class doesn't contain any mitigation codes against XXE. This is a potential security risk as an user can inject external XML entities in Apache Karaf version prior to 4.1.7 or 4.2.2. It has been fixed in Apache Karaf 4.1.7 and 4.2.2 releases.

Weakness: CWE-611

Which versions are affected by CVE-2018-11788?

4 open source packages ship an affected version, including org.apache.karaf.specs:org.apache.karaf.specs.java.xml. It affects 1 product.

PackageAffectedFixed in
org.apache.karaf.specs:org.apache.karaf.specs.java.xml MavenAll versions4.1.7
org.apache.karaf.specs:org.apache.karaf.specs.java.xml MavenAll versions4.1.7
org.apache.karaf.specs:org.apache.karaf.specs.java.xml MavenFrom 4.2.04.2.2
org.apache.karaf.specs:org.apache.karaf.specs.java.xml MavenFrom 4.2.04.2.2

Products include Apache Karaf.

How do I fix CVE-2018-11788?

Upgrade org.apache.karaf.specs:org.apache.karaf.specs.java.xml to a fixed version for your release line: 4.1.7 or 4.2.2.

Is CVE-2018-11788 being exploited?

There is no known exploitation of CVE-2018-11788 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-92wj-x78c-m4fx.

Is CVE-2018-11788 in your software?

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

Check your SBOMs for free