{"id":"USN-7828-1","summary":"python-ldap vulnerabilities","details":"It was discovered that Python LDAP incorrectly handled special characters\nin the special character filtering function. A remote attacker could\npossibly use this issue to perform LDAP injection attacks.\n(CVE-2025-61911)\n\nArad Inbar discovered that Python LDAP incorrectly escaped NUL character\nbytes. An attacker could possibly use this issue to cause a denial of\nservice. (CVE-2025-61912)","modified":"2026-05-20T16:03:50.158763350Z","published":"2025-10-20T12:41:40Z","related":["UBUNTU-CVE-2025-61911","UBUNTU-CVE-2025-61912"],"upstream":["CVE-2025-61911","CVE-2025-61912","UBUNTU-CVE-2025-61911","UBUNTU-CVE-2025-61912"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7828-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-61911"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-61912"}],"affected":[{"package":{"name":"python-ldap","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/python-ldap?arch=source&distro=esm-infra-legacy%2Fxenial"},"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 with Legacy support add-on: 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/usn/USN-7828-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:16.04:LTS","cves":[]}}},{"package":{"name":"python-ldap","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/python-ldap?arch=source&distro=esm-infra%2Fbionic"},"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/usn/USN-7828-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:18.04:LTS","cves":[{"id":"CVE-2025-61911","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/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:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]},{"id":"CVE-2025-61912","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"}]}]}}},{"package":{"name":"python-ldap","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/python-ldap?arch=source&distro=esm-infra%2Ffocal"},"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_name":"python3-pyldap","binary_version":"3.2.0-4ubuntu2.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7828-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:20.04:LTS","cves":[{"id":"CVE-2025-61911","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/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:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]},{"id":"CVE-2025-61912","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"}]}]}}},{"package":{"name":"python-ldap","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-ldap?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/usn/USN-7828-1.json","cves_map":{"ecosystem":"Ubuntu:22.04:LTS","cves":[{"id":"CVE-2025-61911","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/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:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]},{"id":"CVE-2025-61912","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"}]}]}}},{"package":{"name":"python-ldap","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python-ldap?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/usn/USN-7828-1.json","cves_map":{"ecosystem":"Ubuntu:24.04:LTS","cves":[{"id":"CVE-2025-61911","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/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:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]},{"id":"CVE-2025-61912","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"}]}]}}},{"package":{"name":"python-ldap","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/python-ldap?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/usn/USN-7828-1.json","cves_map":{"ecosystem":"Ubuntu:25.10","cves":[{"id":"CVE-2025-61911","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/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:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]},{"id":"CVE-2025-61912","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"}]}]}}}],"schema_version":"1.7.5"}