Code Injection in Karaf - CVE-2022-40145

 

Code Injection in Karaf - CVE-2022-40145

Published: December 22, 2022


Vulnerability identifier: #VU70477
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2022-40145
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Apache Foundation
Affected software:
Karaf

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation when processing the LDAP server URL. A remote attacker with control over the LDAP server address can inject and execute arbitrary Java code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system but requires that application configuration uses a JNDI LDAP data source URI and the attacker has control over the target LDAP server.


How to mitigate CVE-2022-40145

Install updates from vendor's website.

Sources