CVE-2025-61912 Details
Description
python-ldap is a lightweight directory access protocol (LDAP) client API for Python. In versions prior to 3.4.5, ldap.dn.escape_dn_chars() escapes \x00 incorrectly by emitting a backslash followed by a literal NUL byte instead of the RFC-4514 hex form \00. Any application that uses this helper to construct DNs from untrusted input can be made to consistently fail before a request is sent to the LDAP server (e.g., AD), resulting in a client-side denial of service. Version 3.4.5 contains a patch for the issue.
A denial-of-service vulnerability has been identified in python-ldap versions prior to 3.4.5. The issue arises in the function ldap.dn.escape_dn_chars(), which incorrectly escapes NUL characters. Instead of using the RFC-4514 hex representation, the function emits a backslash followed by a literal NUL byte. This flaw can cause applications that rely on this function to construct distinguished names (DNs) from untrusted input to fail consistently before any request is sent to the LDAP server, such as Active Directory. The incorrect escaping leads to client-side exceptions, disrupting normal application workflows.
Users can upgrade to python-ldap version 3.4.5, which corrects the NUL escaping to comply with RFC 4514.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 14, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
| CWE-170 | Improper Null Termination | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| python-ldap python-ldap | < 3.4.5 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 4, 2025 | Initial Analysis | [email protected] |
| Oct 10, 2025 | New CVE Received | [email protected] |