CVE-2022-40145CWE-20CWE-74

Apache Karaf: JDBC JAAS LDAP injection

Critical · published December 21, 2022

CVSS v3.1
9.8
EPSS
3%
Percentile
85.2
In the wild
Unconfirmed
What it is

🚨 A crafty attacker could hijack your system with a single mismanaged JNDI configuration! 🔥 If your LDAP server is in the wrong hands, the stakes are sky-high! Think of this like an unauthorized guest accessing a VIP lounge by simply changing the reservation name at the door — they can then throw a wild party with your resources! 🏰 If exploited, this vulnerability allows an attacker to execute arbitrary code remotely, potentially gaining unfettered access to your server. They could run malicious commands, steal sensitive data, or even take complete control of your infrastructure, leading to devastating consequences.

Put simply

Think of this like an unauthorized guest accessing a VIP lounge by simply changing the reservation name at the door — they can then throw a wild party with your resources! 🏰 This vulnerability arises from the JDBCUtils#doCreateDatasource function, which fails to properly filter user input during a JNDI lookup. An attacker who controls the target LDAP server can manipulate the JNDI URI to execute remote code on the vulnerable application.

What to do

If exploited, this vulnerability allows an attacker to execute arbitrary code remotely, potentially gaining unfettered access to your server. They could run malicious commands, steal sensitive data, or even take complete control of your infrastructure, leading to devastating consequences. Upgrade to Apache Karaf version 4.4.2 or 4.3.8 immediately to resolve this critical issue. Additionally, review any JNDI configurations to ensure they cannot be manipulated by unauthorized users. Regular audits can help maintain robust defenses against such exploits. You've got this! By following these steps, you'll bolster your defenses and keep your systems secure. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02596 · 85.2th percentile
Weaknesses
CWE-20 · Improper Input Validation; CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Published
2022-12-21T15:23Z
EPSS history
Timeline
  • 21 DEC 15:23Z
    Apache Karaf: JDBC JAAS LDAP injection
    cvelistv5