Live threats

All CVEs / Python-ldap

CVE-2025-61912Python-ldap

Medium 5.5 No auth needed

Priority
48
CVSS 4.0
5.5
EPSS
—
Auth required
No
Published
Oct 10, 2025
Updated
Oct 19, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-116, CWE-170
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python-ldap.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI python-ldap < 3.4.5 3.4.5 pip install "python-ldap>=3.4.5"
PyPI python-ldap < 3.4.5 3.4.5 pip install "python-ldap>=3.4.5"

Per OSV / GitHub Advisories (GHSA-p34h-wq7j-h5v6, PYSEC-2026-1846). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
python-ldappython-ldap< 3.4.5

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.