Path Traversal in Apache Karaf

CVE-2019-0191

Apache Karaf kar deployer reads .kar archives and extracts the paths from the "repository/" and "resources/" entries in the zip file. It then writes out the content of these paths to the Karaf repo and resources directories. However, it doesn't do any validation on the paths in the zip file. This means that a malicious user could craft a .kar file with ".." directory names and break out of the directories to write arbitrary content to the filesystem. This is the "Zip-slip" vulnerability - https://snyk.io/research/zip-slip-vulnerability. This vulnerability is low if the Karaf process user has limited permission on the filesystem. Any Apache Karaf releases prior 4.2.3 is impacted.

Vulnerability class: Path Traversal (Directory Traversal)

EPSS: 0.049 (91.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2019-0191?
CVE-2019-0191 is a medium-severity vulnerability in Apache Karaf, classified under Path Traversal. CVSS score: 6.5/10. Published 2019-03-21.
How severe is CVE-2019-0191?
Medium severity. CVSS v3 base score is 6.5 out of 10.