CVE-2025-61912
published medium CVSS 4.0 · 5.5python-ldap Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| python-ldap | — | python-ldap< 3.4.5 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-3058 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | bionic | python-ldap | Advisory build | 3.0.0-1ubuntu0.2+esm1 | USN-7828-1 |
| Alpine Linux | edge | py3-ldap | Fixed | 3.4.5-r0 | Package fix record |
| SUSE / openSUSE | SLE-16 | python313-ldapaarch64 | Advisory build | 3.4.4-160000.3.1 | SUSE-SU-2026:20933-1 |
| Amazon Linux | AL2 | python-ldapaarch64 | Listed in advisory | Not stated | ALAS2-2025-3058 |
| Ubuntu | focal | python-ldap | Advisory build | 3.2.0-4ubuntu2.1+esm1 | USN-7828-1 |
| Ubuntu | jammy | python-ldap | Advisory build | 3.2.0-4ubuntu7.2 | USN-7828-1 |
Show 37 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | python-ldap | Advisory build | 3.4.4-1ubuntu0.24.04.1 | USN-7828-1 |
| Ubuntu | questing | python-ldap | Advisory build | 3.4.4-1ubuntu0.25.10.1 | USN-7828-1 |
| Ubuntu | xenial | python-ldap | Advisory build | 2.4.22-0.1ubuntu0.1~esm1 | USN-7828-1 |
| Alpine Linux | v3.24 | py3-ldap | Fixed | 3.4.5-r0 | Package fix record |
| SUSE / openSUSE | SLE-16 | python313-ldapppc64le | Advisory build | 3.4.4-160000.3.1 | SUSE-SU-2026:20933-1 |
| SUSE / openSUSE | SLE-16 | python313-ldaps390x | Advisory build | 3.4.4-160000.3.1 | SUSE-SU-2026:20933-1 |
| SUSE / openSUSE | SLE-16 | python313-ldapx86_64 | Advisory build | 3.4.4-160000.3.1 | SUSE-SU-2026:20933-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-ldapaarch64 | Advisory build | 3.4.4-160000.3.1 | OPENSUSE-SU-2026:20421-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-ldapppc64le | Advisory build | 3.4.4-160000.3.1 | OPENSUSE-SU-2026:20421-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-ldaps390x | Advisory build | 3.4.4-160000.3.1 | OPENSUSE-SU-2026:20421-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-ldapx86_64 | Advisory build | 3.4.4-160000.3.1 | OPENSUSE-SU-2026:20421-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-ldapaarch64 | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-ldapppc64le | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-ldaps390x | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-ldapx86_64 | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-ldapaarch64 | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-ldapppc64le | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-ldaps390x | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-ldapx86_64 | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-ldapaarch64 | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-ldapppc64le | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-ldaps390x | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-ldapx86_64 | Advisory build | 3.4.5-1.1 | OPENSUSE-SU-2025:15637-1 |
| Ubuntu | bionic | python-pyldap | Advisory build | 3.0.0-1ubuntu0.2+esm1 | USN-7828-1 |
| Ubuntu | bionic | python3-ldap | Advisory build | 3.0.0-1ubuntu0.2+esm1 | USN-7828-1 |
| Ubuntu | bionic | python3-pyldap | Advisory build | 3.0.0-1ubuntu0.2+esm1 | USN-7828-1 |
| Ubuntu | focal | python3-ldap | Advisory build | 3.2.0-4ubuntu2.1+esm1 | USN-7828-1 |
| Ubuntu | focal | python3-pyldap | Advisory build | 3.2.0-4ubuntu2.1+esm1 | USN-7828-1 |
| Ubuntu | jammy | python3-ldap | Advisory build | 3.2.0-4ubuntu7.2 | USN-7828-1 |
| Ubuntu | jammy | python3-pyldap | Advisory build | 3.2.0-4ubuntu7.2 | USN-7828-1 |
| Ubuntu | noble | python3-ldap | Advisory build | 3.4.4-1ubuntu0.24.04.1 | USN-7828-1 |
| Ubuntu | noble | python3-pyldap | Advisory build | 3.4.4-1ubuntu0.24.04.1 | USN-7828-1 |
| Ubuntu | questing | python3-ldap | Advisory build | 3.4.4-1ubuntu0.25.10.1 | USN-7828-1 |
| Ubuntu | questing | python3-pyldap | Advisory build | 3.4.4-1ubuntu0.25.10.1 | USN-7828-1 |
| Amazon Linux | AL2 | python-ldapi686 | Listed in advisory | Not stated | ALAS2-2025-3058 |
| Amazon Linux | AL2 | python-ldapsrc | Listed in advisory | Not stated | ALAS2-2025-3058 |
| Amazon Linux | AL2 | python-ldapx86_64 | Listed in advisory | Not stated | ALAS2-2025-3058 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| python-ldap | python-ldap | < 3.4.5 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-116 CWE-116: Improper Encoding or Escaping of Output
- CWE-170 CWE-170: Improper Null Termination
References
3Provider assertions
2GitHub_M · cna
python-ldap Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6a7deab82029471f68abbe2634beeca5a9db6de0c488ac04f29c5ecf4014cf3c
- Ingested
- 23 Sep 2026, 08:55:13 UTC
- Source record
- Official CVE record