#VU70477 Code Injection in Karaf


Published: 2022-12-22

Vulnerability identifier: #VU70477

Vulnerability risk: Medium

CVSSv3.1: 7.1 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-40145

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Karaf
Server applications / Application servers

Vendor: Apache Foundation

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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Karaf: 4.4.0 - 4.4.1, 4.3.0 - 4.3.7, 4.2.0 - 4.2.15, 4.1.0 - 4.1.7, 4.0.0 - 4.0.10


External links
http://karaf.apache.org/security/cve-2022-40145.txt


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability