CVE-2025-61912Python-ldap
Medium 5.5 No auth needed
Follow: this CVE · Python-ldap · Python-ldap We alert you by email or Slack (account required).
- Priority
- 48
- CVSS 4.0
- 5.5
- EPSS
- —
- Auth required
- No
- Published
- Oct 10, 2025
- Updated
- Oct 19, 2026
- Category
- Application · Cross-platform
- 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.
What to do
- Apply the vendor's security update for Python-ldap.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| python-ldap | python-ldap | < 3.4.5 |
Official advisories
- Security update for python-ldap · SUSE · SUSE-SU-2026:20933-1 · Mar 25, 2026 Medium
- Security update for python-ldap · SUSE · openSUSE-SU-2026:20421-1 · Mar 25, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Exploit Third Party Advisory