CVE-2019-0191

Medium

Description

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductApache Karaf
PublishedMar 21, 2019
First seenMar 21, 2019

How to fix

Update
  • apache karaf4.2.3 or later
  • org.apache.karaf:karaf4.2.3 or later
  • org.apache.karaf:apache-karaf4.2.3 or later

Affected products

ProductAffected versionsFixed in
apache karafv < 4.2.34.2.3
org.apache.karaf:karafMavenv < 4.2.34.2.3
org.apache.karaf:apache-karafMavenv < 4.2.34.2.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.