XML External Entity Reference in Apache Karaf
Critical severity
GitHub Reviewed
Published
Jan 7, 2019
to the GitHub Advisory Database
•
Updated Sep 11, 2023
Package
Affected versions
>= 4.2.0, < 4.2.2
< 4.1.7
Patched versions
4.2.2
4.1.7
Description
Published to the GitHub Advisory Database
Jan 7, 2019
Reviewed
Jun 16, 2020
Last updated
Sep 11, 2023
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.
References