CVE-2025-61912

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

State
Published
Severity
5.5 Medium
Published
Oct 10, 2025
Updated
Oct 14, 2025
Reserved
Oct 3, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.05.5 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:PGitHub_M

Weaknesses

  • CWE-116 Improper Encoding or Escaping of Output
  • CWE-170 Improper Null Termination

Affected Products

ProductVersions
python-ldappython-ldap
  • < 3.4.5Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.