Skip to main content
← All vulnerabilities
CVE-2019-0191GHSA-869J-5855-HJPM

Apache Karaf kar deployer reads .kar archives and extracts the paths from the "repository/" and "resources/" entries in the zip file.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.2.3
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Apache Apache Karaf

    Apache Karaf version prior to 4.2.3

  • org.apache.karaf:karafMaven

    fixed in 4.2.3

  • org.apache.karaf:apache-karafMaven

    fixed in 4.2.3

References 3

lists.apache.org

securityfocus.com