ADVISORIES

Red Hat VEX

RHVEX-CVE-2025-61912

python-ldap: python-ldap Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination

Moderate No fix available CVE-2025-61912

Details

A vulnerability exists in the python-ldap's ldap.dn.escape_dn_chars() helper function, where the null byte (\x00) is improperly escaped by emitting a backslash followed by a literal NUL instead of the required RFC 4514 hex form \00. When this helper is used on untrusted input to build LDAP distinguished names (DNs), it may cause a client-side failure, before any communication with the LDAP server occurs. This results in a client side denial of service (DoS) for parts of the application that rely on the helper for DN construction.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:10python3-ldap
All versions, no fix (fix deferred)
Red Hat:enterprise_linux:6python-ldap
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python-ldap
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:8python3-ldap
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:9python3-ldap
All versions, no fix (fix deferred)

References