Remote code injection in Apache Karaf



Published: 2022-12-22
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-40145
CWE-ID CWE-94
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Karaf
Server applications / Application servers

Vendor Apache Foundation

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Code Injection

EUVDB-ID: #VU70477

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 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: No

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.0.0 - 4.4.1

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.



###SIDEBAR###