CVE-2019-0226 Apache Karaf vulnerable to relative path traversal

Medium 4.9 Published Updated

An attacker can traverse directories and overwrite files via the Karaf Config service install method, requiring an upgrade to mitigate.

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

What is CVE-2019-0226?

CVE-2019-0226 is a medium-severity path traversal vulnerability in Apache Karaf, published on 9 May 2019. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Apache Karaf Config service provides a install method (via service or MBean) that could be used to travel in any directory and overwrite existing file. The vulnerability is low if the Karaf process user has limited permission on the filesystem. Any Apache Karaf version before 4.2.5 is impacted. User should upgrade to Apache Karaf 4.2.5 or later.

Weakness: CWE-22

Which versions are affected by CVE-2019-0226?

2 open source packages ship an affected version, including org.apache.karaf.config:org.apache.karaf.config.core. It affects 1 product.

PackageAffectedFixed in
org.apache.karaf.config:org.apache.karaf.config.core MavenAll versions4.2.5
org.apache.karaf.config:org.apache.karaf.config.core MavenAll versions4.2.5

Products include Apache Karaf.

How do I fix CVE-2019-0226?

Upgrade org.apache.karaf.config:org.apache.karaf.config.core to 4.2.5 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2019-0226 being exploited?

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

Sources

Also known as GHSA-fjw4-39pg-vf4f.

Is CVE-2019-0226 in your software?

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

Check your SBOMs for free