WaratekVRT Sign in

CVE-2018-11788 Apache Karaf

Affected softwareApache Karaf
Severity9.8 Critical CVSS 3.0 2 scores
Fixed in4.2.2, 4.1.7
WeaknessXML external entity (XXE) (CWE-611)
Published7 Jan 2019
Updated17 Jun 2026

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.

Exploitation status

Proof of concept only

A proof of concept exists, but no reviewed exploit catalogue lists this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC 1 indexed Published artifacts you can open, in GitHub PoC; first seen 2019-01-06.
  • EPSS 7.3% chance in 30 days
IndexArtifactStarsFirst seen
GitHub PoC Apache Karaf XXE Vulnerability (CVE-2018-11788) 37 2019-01-06

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full XXE
  • Action available security rule
  • Review automated Inferred
  • Record active
Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR xxe security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-611: XML External Entity Reference.

How to mitigate CVE-2018-11788

Upgrade Apache Karaf to a release that fixes it: 4.2.2 or 4.1.7. Until you can, Waratek RASP blocks exploitation with its XXE rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.8 CRITICAL v3.0 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.0 9.8 CRITICAL CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 7.5 none AV:N/AC:L/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.karaf.specs:org.apache.karaf.specs.java.xml 4.2.0 4.2.2 unbounded
org.apache.karaf.specs:org.apache.karaf.specs.java.xml 0 4.1.7 unbounded

Products and versions

2 products, 6 version entries
SourceVendorProductSchemeAffected versions
nvd apache karaf generic < 4.1.7 · 4.2.0:milestone1 · 4.2.0:milestone2 · ≥ 4.2.0 and ≤ 4.2.1
osv org.apache.karaf.specs org.apache.karaf.specs.java.xml generic < 4.1.7 · ≥ 4.2.0 and < 4.2.2

References

URLTags
https://github.com/apache/karaf/commit/0c36c50bc158739c8fc8543122a6740c54adafca WEB
https://github.com/apache/karaf PACKAGE
https://web.archive.org/web/20200227101219/https://www.securityfocus.com/bid/106479 WEB
http://karaf.apache.org/security/cve-2018-11788.txt WEB
http://www.securityfocus.com/bid/106479 Third Party Advisory, VDB Entry

Timeline

Published2019-01-07By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.