CVE-2022-22932 Path traversal flaws

Medium 5.3 Published Updated

Path traversal in Apache Karaf obr commands and maven plugin allows breaking out of expected folders, requiring an upgrade to mitigate.

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

What is CVE-2022-22932?

CVE-2022-22932 is a medium-severity path traversal vulnerability in Apache Karaf, published on 26 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache Karaf obr:* commands and run goal on the karaf-maven-plugin have partial path traversal which allows to break out of expected folder. The risk is low as obr:* commands are not very used and the entry is set by user. This has been fixed in revision: https://gitbox.apache.org/repos/asf?p=karaf.git;h=36a2bc4 https://gitbox.apache.org/repos/asf?p=karaf.git;h=52b70cf Mitigation: Apache Karaf users should upgrade to 4.2.15 or 4.3.6 or later as soon as possible, or use correct path. JIRA Tickets: https://issues.apache.org/jira/browse/KARAF-7326

Weakness: CWE-22

Which versions are affected by CVE-2022-22932?

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

PackageAffectedFixed in
org.apache.karaf:apache-karaf MavenAll versions4.2.15
org.apache.karaf:apache-karaf MavenAll versions4.2.15
org.apache.karaf:apache-karaf MavenFrom 4.3.04.3.6
org.apache.karaf:apache-karaf MavenFrom 4.3.04.3.6

Products include Apache Karaf.

How do I fix CVE-2022-22932?

Upgrade org.apache.karaf:apache-karaf to a fixed version for your release line: 4.2.15 or 4.3.6.

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

Is CVE-2022-22932 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-544x-2jx9-4pfg.

Is CVE-2022-22932 in your software?

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

Check your SBOMs for free