{"id":"UBUNTU-CVE-2025-61912","details":"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.","modified":"2026-02-04T17:01:13.021077Z","published":"2025-10-10T22:15:00Z","related":["USN-7828-1"],"upstream":["CVE-2025-61912"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-61912"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-61912"},{"type":"REPORT","url":"https://github.com/python-ldap/python-ldap/security/advisories/GHSA-p34h-wq7j-h5v6"},{"type":"REPORT","url":"https://github.com/python-ldap/python-ldap/commit/6ea80326a34ee6093219628d7690bced50c49a3f"},{"type":"REPORT","url":"https://github.com/python-ldap/python-ldap/commit/9f5b2effbafdf7af0e7064a7aa42d2739d373bd7"},{"type":"REPORT","url":"https://github.com/python-ldap/python-ldap/commit/6ea80326a34ee6093219628d7690bced50c49a3f"},{"type":"REPORT","url":"https://github.com/python-ldap/python-ldap/releases/tag/python-ldap-3.4.5"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7828-1"}],"affected":[{"package":{"name":"python-ldap","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/python-ldap@2.4.22-0.1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.22-0.1ubuntu0.1~esm1"}]}],"versions":["2.4.20-0.1","2.4.22-0.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python-ldap","binary_version":"2.4.22-0.1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61912.json"}},{"package":{"name":"python-ldap","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/python-ldap@3.0.0-1ubuntu0.2+esm1?arch=source&distro=esm-infra/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0-1ubuntu0.2+esm1"}]}],"versions":["2.4.41-1","2.5.2-1","3.0.0~b4-1","3.0.0-1","3.0.0-1ubuntu0.1","3.0.0-1ubuntu0.2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"python-ldap","binary_version":"3.0.0-1ubuntu0.2+esm1"},{"binary_name":"python-pyldap","binary_version":"3.0.0-1ubuntu0.2+esm1"},{"binary_name":"python3-ldap","binary_version":"3.0.0-1ubuntu0.2+esm1"},{"binary_name":"python3-pyldap","binary_version":"3.0.0-1ubuntu0.2+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61912.json"}},{"package":{"name":"python-ldap","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/python-ldap@3.2.0-4ubuntu2.1+esm1?arch=source&distro=esm-infra/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.0-4ubuntu2.1+esm1"}]}],"versions":["3.1.0-2build1","3.1.0-2build2","3.2.0-3","3.2.0-3ubuntu1","3.2.0-3ubuntu2","3.2.0-3ubuntu3","3.2.0-4ubuntu2","3.2.0-4ubuntu2.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"python3-ldap","binary_version":"3.2.0-4ubuntu2.1+esm1"},{"binary_version":"3.2.0-4ubuntu2.1+esm1","binary_name":"python3-pyldap"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61912.json"}},{"package":{"name":"python-ldap","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-ldap@3.2.0-4ubuntu7.2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.0-4ubuntu7.2"}]}],"versions":["3.2.0-4ubuntu5","3.2.0-4ubuntu6","3.2.0-4ubuntu7","3.2.0-4ubuntu7.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-ldap","binary_version":"3.2.0-4ubuntu7.2"},{"binary_name":"python3-pyldap","binary_version":"3.2.0-4ubuntu7.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61912.json"}},{"package":{"name":"python-ldap","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python-ldap@3.4.4-1ubuntu0.24.04.1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.4-1ubuntu0.24.04.1"}]}],"versions":["3.4.3-2build2","3.4.3-2build3","3.4.3-2ubuntu1","3.4.4-1","3.4.4-1build1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-ldap","binary_version":"3.4.4-1ubuntu0.24.04.1"},{"binary_name":"python3-pyldap","binary_version":"3.4.4-1ubuntu0.24.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61912.json"}},{"package":{"name":"python-ldap","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/python-ldap@3.4.4-1ubuntu0.25.10.1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.4-1ubuntu0.25.10.1"}]}],"versions":["3.4.4-1build3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-ldap","binary_version":"3.4.4-1ubuntu0.25.10.1"},{"binary_name":"python3-pyldap","binary_version":"3.4.4-1ubuntu0.25.10.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61912.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V4","score":"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"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"Ubuntu","score":"medium"}]}