GHSA-c2p4-8mvv-rwmv
CRITICALCVE-2022-40145This vulnerability 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 uses InitialContext.lookup(jndiName) without filtering. A user can modify options.put(JDBCUtils.DATASOURCE, "osgi:" + DataSource.class.getName()); to options
- Affected
- < 4.3.8, >= 4.4.0, < 4.4.2
- Fixed in
- 4.3.8
- Weakness
- CWE-20
- Published
- 2022-12-21
- Source
- github