CVE-2022-22932 Path traversal flaws
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.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.karaf:apache-karaf Maven | All versions | 4.2.15 |
org.apache.karaf:apache-karaf Maven | All versions | 4.2.15 |
org.apache.karaf:apache-karaf Maven | From 4.3.0 | 4.3.6 |
org.apache.karaf:apache-karaf Maven | From 4.3.0 | 4.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.
Other vulnerabilities in Apache Karaf
- CVE-2026-91012 Apache Karaf: Path Traversal in Config Service Allows Manager-to-Admin Privilege Escalation
- CVE-2026-91048 Missing authorization in Apache Karaf
- CVE-2022-40145 Apache Karaf: JDBC JAAS LDAP injection
- CVE-2018-11788 XML External Entity Reference in Apache Karaf
- CVE-2026-92142 Apache Karaf: Authorization bypass in JMX MBean lifecycle operations
Sources
Also known as GHSA-544x-2jx9-4pfg.