Improper Privilege Management in Karaf - CVE-2018-11786

 

Improper Privilege Management in Karaf - CVE-2018-11786

Published: September 18, 2018 / Updated: August 8, 2020


Vulnerability identifier: #VU36684
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2018-11786
CWE-ID: CWE-269
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Apache Foundation
Affected software:
Karaf

Detailed vulnerability description

The vulnerability allows a remote authenticated user to execute arbitrary code.

In Apache Karaf prior to 4.2.0 release, if the sshd service in Karaf is left on so an administrator can manage the running instance, any user with rights to the Karaf console can pivot and read/write any file on the file system to which the Karaf process user has access. This can be locked down a bit by using chroot to change the root directory to protect files outside of the Karaf install directory; it can be further locked down by defining a security manager policy that limits file system access to those directories beneath the Karaf home that are necessary for the system to run. However, this still allows anyone with ssh access to the Karaf process to read and write a large number of files as the Karaf process user.


How to mitigate CVE-2018-11786

Install update from vendor's website.

Sources