CVE-2023-25613: Apache Kerby LdapIdentityBackend LDAP Injection vulnerability

Summary

20/02/2023
Yes i
Critical
9.8

CVE-2023-25613: Apache Kerby LdapIdentityBackend LDAP Injection vulnerability. Affects org.apache.kerby:ldap-backend versions < 2.0.3. Fixed in 2.0.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Apache Kerby is an open-source Java library that provides a Kerberos protocol implementation. It offers various features for authentication and security in distributed systems. The LdapIdentityBackend is a component of Apache Kerby that allows integration with LDAP servers for user identity management. This vulnerability affects versions prior to 2.0.3 of the LdapIdentityBackend.

Vulnerability Detail

The LdapIdentityBackend in Apache Kerby before 2.0.3 is vulnerable to LDAP Injection. This type of vulnerability occurs when user-supplied input is not properly sanitized and is directly used in LDAP queries. An attacker can exploit this vulnerability by injecting malicious LDAP filter expressions, leading to unauthorized access, data leakage, or remote code execution. The impact of this vulnerability is critical, as it allows an attacker to manipulate LDAP queries and potentially compromise the entire system.

How To Fix

Minimum fixed version

2.0.3

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, developers can implement input validation and sanitization to prevent LDAP Injection attacks. All user-supplied input should be properly validated and sanitized before being used in LDAP queries. Additionally, it is recommended to enforce strict access controls and limit the privileges of the LDAP user used by the application.

Conclusion

The LDAP Injection vulnerability in Apache Kerby's LdapIdentityBackend can have severe consequences, including unauthorized access and remote code execution. It is crucial to upgrade to the patched version (2.0.3) or later to mitigate this vulnerability. Developers should also implement input validation and sanitization to prevent LDAP Injection attacks. For further assistance and support in vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for org.apache.kerby:ldap-backend →

Share this vulnerability

FAQ

LDAP Injection is a type of security vulnerability that occurs when untrusted user input is directly included in LDAP queries without proper sanitization. Attackers can manipulate the input to modify the behavior of the LDAP query and potentially gain unauthorized access or execute arbitrary code.

The LDAP Injection vulnerability in Apache Kerby can lead to unauthorized access, data leakage, or remote code execution. An attacker can manipulate LDAP queries to bypass authentication, retrieve sensitive information, or execute arbitrary commands on the affected system.

At the time of this advisory, there is no known public exploit for this vulnerability. However, it is important to apply the recommended fixes and security patches to mitigate the risk of exploitation.

No, only versions prior to 2.0.3 of the LdapIdentityBackend in Apache Kerby are affected by this vulnerability. It is recommended to upgrade to the latest patched version to ensure the security of the application.

For more information about this vulnerability, including technical details and the CVE identifier, refer to the official GitHub advisory: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-337f-xr2x-6fcf/GHSA-337f-xr2x-6fcf.json

How To Fix

Minimum fixed version

2.0.3

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback