python-ldap — security advisory
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.
- Products
- python-ldap
- Affected versions
- 3.4.3-2, 3.4.4-1, 3.4.4-2
- Fixed versions
- 3.4.3-2+deb12u1, 3.4.4-1+deb13u1, 3.4.5-1
- CVEs
- CVE-2025-61912
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 23:25 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2025-61912
python-ldap
Fixed versions: 3.4.3-2+deb12u1
python-ldap
Fixed versions: 3.4.4-1+deb13u1
python-ldap
Fixed versions: 3.4.5-1
Complete source record
{
"id": "5ad3916c31ba0e0ba6b162b6e88f8e690220efc5fcda76aa52e10b218f45a7de",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2025-61912",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2025-61912",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2025-61912",
"products": [
{
"name": {
"value": "python-ldap",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.4.3-2+deb12u1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "3.4.3-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "python-ldap",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.4.4-1+deb13u1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "3.4.4-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "python-ldap",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.4.5-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "3.4.4-1",
"evidence": "/affected/2/versions"
},
{
"value": "3.4.4-2",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2025-61912",
"aliases": [
"DEBIAN-CVE-2025-61912"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.4.3-2+deb12u1"
}
]
}
],
"package": {
"name": "python-ldap",
"purl": "pkg:deb/debian/python-ldap?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"3.4.3-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-61912.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.4.4-1+deb13u1"
}
]
}
],
"package": {
"name": "python-ldap",
"purl": "pkg:deb/debian/python-ldap?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"3.4.4-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-61912.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.4.5-1"
}
]
}
],
"package": {
"name": "python-ldap",
"purl": "pkg:deb/debian/python-ldap?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"3.4.4-1",
"3.4.4-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-61912.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T17:47:43.041776094Z",
"provider": "osv",
"upstream": [
"CVE-2025-61912"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2025-61912"
]
},
"related_cves": [
{
"value": "CVE-2025-61912",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 418523,
"published_at": "2025-10-10T22:15:37.637+00:00"
}