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.
Published: 2025-10-10
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

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

Thu, 04 Dec 2025 18:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:python-ldap:python-ldap:*:*:*:*:*:*:*:*

Wed, 29 Oct 2025 12:15:00 +0000

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


Mon, 20 Oct 2025 16:30:00 +0000

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

Tue, 14 Oct 2025 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 10 Oct 2025 22:15:00 +0000

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'}


Subscriptions

Python-ldap Python-ldap
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-10-14T14:58:06.682Z

Reserved: 2025-10-03T22:21:59.614Z

Link: CVE-2025-61912

cve-icon Vulnrichment

Updated: 2025-10-14T14:58:03.726Z

cve-icon NVD

Status : Analyzed

Published: 2025-10-10T22:15:37.637

Modified: 2025-12-04T17:57:59.837

Link: CVE-2025-61912

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-10-10T22:04:25Z

Links: CVE-2025-61912 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2025-10-20T16:17:09Z

Weaknesses