Pypi · Python-Ldap · CVE-2025-61912
**Name of the Vulnerable Software and Affected Versions**
python-ldap versions prior to 3.4.5
**Description**
python-ldap is a lightweight directory access protocol (LDAP) client API for Python. The `ldap.dn.escape dn chars()` function incorrectly escapes `x00` by emitting a backslash followed by a literal NUL byte instead of the RFC-4514 hex form `00`. This can cause applications using this helper to construct Distinguished Names (DNs) from untrusted input to fail before a request is sent to the LDAP server, resulting in a client-side denial of service.
**Recommendations**
Update to python-ldap version 3.4.5 or later.