{"id":"CVE-2025-61912","published":"2025-10-10T22:04:25Z","modified":"2025-10-14T14:58:06Z","title":"python-ldap Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination","vendor":"python-ldap","product":"python-ldap","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"4.0","vector":"CVSS: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:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00702,"percentile":0.48831,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"},{"id":"CWE-170","name":"Improper Null Termination"}],"references":[{"url":"https://github.com/python-ldap/python-ldap/security/advisories/GHSA-p34h-wq7j-h5v6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-ldap/python-ldap/commit/6ea80326a34ee6093219628d7690bced50c49a3f","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-ldap/python-ldap/releases/tag/python-ldap-3.4.5","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":9.77},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"python-ldap","affectedVersions":[{"vendor":"python-ldap","product":"python-ldap","versions":["< 3.4.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-14T14:57:58.750366Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"python-ldap","vulnerableRanges":["<3.4.5"],"patched":["3.4.5"],"from":["GHSA-p34h-wq7j-h5v6","PYSEC-2026-1846"],"provenance":"source"}],"summary":{"text":"python-ldap, the Python LDAP client API, has a flaw in its ldap.dn.escape_dn_chars() helper, which escapes the NUL character as a backslash followed by a literal NUL byte rather than the RFC-4514 hex form. An attacker who can supply input to an application that uses this helper to build distinguished names can, over the network with no authentication or user interaction and at low complexity, cause the client to fail consistently before the request reaches the LDAP server, resulting in a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:38Z"},"euvd":{"id":"EUVD-2025-33796","exploited":false,"provenance":"source"}}