CVE-2025-61912

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

Published Oct 10, 2025 CVSS 4.0 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-p34h-wq7j-h5v6 python-ldap is Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination
Ubuntu USN Ubuntu USN USN-7828-1 Python LDAP vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:python-ldap:python-ldap:*:*:*:*:*:*:*:*
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Python-ldap
Python-ldap python-ldap
Vendors & Products Python-ldap
Python-ldap python-ldap
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title python-ldap Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination
Weaknesses CWE-116
CWE-170
References
Metrics cvssV4_0

{'score': 5.5, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 14, 2025, 2:58 PM
Reserved
Oct 3, 2025, 10:21 PM
Status
Analyzed
Published
Oct 10, 2025, 10:15 PM
Modified
Oct 19, 2026, 4:10 PM
Severity
Moderate
Public date
Oct 10, 2025, 10:04 PM