{"schemaVersion":3,"id":"CVE-2025-61912","aliases":["GHSA-p34h-wq7j-h5v6","PYSEC-2026-1846","UBUNTU-CVE-2025-61912","DEBIAN-CVE-2025-61912","CGA-c5x3-vm54-6f4c","CGA-x45r-rv8x-rc58"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-10-10T22:04:25.028Z","modified":"2025-10-14T14:58:06.682Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.5,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":6.9,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.9,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":6.9,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.5,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00458,"percentile":0.38418,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00458},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00458,"percentile":0.38418}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00458,"percentile":0.38418}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_PYTHON-LDAP_PYTHON-LDAP","name":"Python Ldap","source":"github","url":"https://github.com/python-ldap/python-ldap/security/advisories/GHSA-r7r6-cc7p-4v5m","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output","description":"The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/116.html"},{"id":"CWE-170","name":"Improper Null Termination","description":"The product does not terminate or incorrectly terminates a string or array with a null character or equivalent terminator.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/170.html"}],"affected":[{"vendor":"chainguard","product":"awx","name":"awx","label":"awx","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/awx","purlType":"apk","versions":[{"text":"< 24.6.1-r18","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 24.6.1-r18","eol":null,"hubHref":null},{"vendor":"debian","product":"python-ldap","name":"python-ldap","label":"python-ldap","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-ldap","purlType":"deb","versions":[{"text":"< 3.4.3-2+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.4.4-1+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.4.5-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.3-2+deb12u1 | < 3.4.4-1+deb13u1 | < 3.4.5-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python-ldap","name":"python-ldap","label":"python-ldap","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python-ldap","purlType":"deb","versions":[{"text":"< 2.4.22-0.1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.0.0-1ubuntu0.2+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.2.0-4ubuntu2.1+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.2.0-4ubuntu7.2","noFixRecorded":false,"fixedIn":null},{"text":"< 3.4.4-1ubuntu0.24.04.1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.4.4-1ubuntu0.25.10.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.22-0.1ubuntu0.1~esm1 | < 3.0.0-1ubuntu0.2+esm1 | < 3.2.0-4ubuntu2.1+esm1 | < 3.2.0-4ubuntu7.2 | < 3.4.4-1ubuntu0.24.04.1 | < 3.4.4-1ubuntu0.25.10.1","eol":null,"hubHref":null},{"vendor":"PyPI","product":"python-ldap","name":"python-ldap","label":"python-ldap","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/python-ldap","purlType":"pypi","versions":[{"text":"< 3.4.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.5","eol":null,"hubHref":null},{"vendor":"python-ldap","product":"python-ldap","name":"python-ldap","label":"python-ldap","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.4.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.5","eol":null,"hubHref":"/vendor/python-ldap/python-ldap"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/python-ldap/python-ldap/security/advisories/GHSA-p34h-wq7j-h5v6","label":"github.com/python-ldap/python-ldap/security/advisories/GHSA-p34h-wq7j-h5v6","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","REPORT","Advisory","Exploit","Third Party Advisory"]},{"url":"https://github.com/python-ldap/python-ldap/commit/6ea80326a34ee6093219628d7690bced50c49a3f","label":"github.com/python-ldap/python-ldap/commit/6ea80326a34ee6093219628d7690bced50c49a3f","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","FIX","Patch"]},{"url":"https://github.com/python-ldap/python-ldap/releases/tag/python-ldap-3.4.5","label":"github.com/python-ldap/python-ldap/releases/tag/python-ldap-3.4.5","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Release Notes"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61912","label":"nvd.nist.gov/vuln/detail/CVE-2025-61912","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/python-ldap/python-ldap","label":"github.com/python-ldap/python-ldap","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/python-ldap","label":"pypi.org/project/python-ldap","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-p34h-wq7j-h5v6","label":"github.com/advisories/GHSA-p34h-wq7j-h5v6","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-61912","label":"ubuntu.com/security/CVE-2025-61912","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-61912","label":"www.cve.org/CVERecord?id=CVE-2025-61912","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/python-ldap/python-ldap/commit/9f5b2effbafdf7af0e7064a7aa42d2739d373bd7","label":"github.com/python-ldap/python-ldap/commit/9f5b2effbafdf7af0e7064a7aa42d2739d373bd7","hostname":"github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7828-1","label":"ubuntu.com/security/notices/USN-7828-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-61912","label":"security-tracker.debian.org/tracker/CVE-2025-61912","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/61xxx/CVE-2025-61912.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/61xxx/CVE-2025-61912.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2025:15637-1","OPENSUSE-SU-2026:20421-1","SUSE-SU-2025:3695-1","SUSE-SU-2025:3714-1","SUSE-SU-2026:20933-1","USN-7828-1"],"duplicates":[],"related":["CGA-38C2-5HR9-5R4Q","CGA-9Q37-CPV6-MP93","OPENSUSE-SU-2025:15637-1","OPENSUSE-SU-2026:20421-1","SUSE-SU-2025:3695-1","SUSE-SU-2025:3714-1","SUSE-SU-2026:20933-1","USN-7828-1"]},"timeline":[{"kind":"published","date":"2025-10-10T22:04:25.028Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-10-14T14:58:06.682Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T21:25:53.182Z","stale":false,"partial":false}}