{"schemaVersion":3,"id":"CVE-2025-61911","aliases":["GHSA-r7r6-cc7p-4v5m","PYSEC-2026-1847","UBUNTU-CVE-2025-61911","DEBIAN-CVE-2025-61911","CGA-35p9-2jfq-4cxp","CGA-9xh6-6jhp-c8wj"],"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, the sanitization method `ldap.filter.escape_filter_chars` can be tricked to skip escaping of special characters when a crafted `list` or `dict` is supplied as the `assertion_value` parameter, and the non-default `escape_mode=1` is configured. The method `ldap.filter.escape_filter_chars` supports 3 different escaping modes. `escape_mode=0` (default) and `escape_mode=2` happen to raise exceptions when a `list` or `dict` object is supplied as the `assertion_value` parameter. However, `escape_mode=1` computes without performing adequate logic to ensure a fully escaped return value. If an application relies on the vulnerable method in the `python-ldap` library to escape untrusted user input, an attacker might be able to abuse the vulnerability to launch ldap injection attacks which could potentially disclose or manipulate ldap data meant to be inaccessible to them. Version 3.4.5 fixes the issue by adding a type check at the start of the `ldap.filter.escape_filter_chars` method to raise an exception when the supplied `assertion_value` parameter is not of type `str`.","dates":{"published":"2025-10-10T22:02:15.529Z","modified":"2025-10-14T14:57:34.174Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","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:L/VI:L/VA:N/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:L/VI:L/VA:N/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:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":10,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":10,"impact":4.2,"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:L/VI:L/VA:N/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:L/VI:L/VA:N/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":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00322,"percentile":0.23789,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00322},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00322,"percentile":0.23789}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00322,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00322,"percentile":0.23789}]},"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-75","name":"Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)","description":"The product does not adequately filter user-controlled input for special elements with control implications.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/75.html"},{"id":"CWE-843","name":"Access of Resource Using Incompatible Type ('Type Confusion')","description":"The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/843.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-r7r6-cc7p-4v5m","label":"github.com/python-ldap/python-ldap/security/advisories/GHSA-r7r6-cc7p-4v5m","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","REPORT","Advisory","Exploit","Mitigation","Third Party Advisory"]},{"url":"https://github.com/python-ldap/python-ldap/commit/3957526fb1852e84b90f423d9fef34c7af25b85a","label":"github.com/python-ldap/python-ldap/commit/3957526fb1852e84b90f423d9fef34c7af25b85a","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-61911","label":"nvd.nist.gov/vuln/detail/CVE-2025-61911","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-r7r6-cc7p-4v5m","label":"github.com/advisories/GHSA-r7r6-cc7p-4v5m","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-61911","label":"ubuntu.com/security/CVE-2025-61911","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-61911","label":"www.cve.org/CVERecord?id=CVE-2025-61911","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/python-ldap/python-ldap/commit/464fddacd63092d6e01c62a38316a713c30ca98a","label":"github.com/python-ldap/python-ldap/commit/464fddacd63092d6e01c62a38316a713c30ca98a","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-61911","label":"security-tracker.debian.org/tracker/CVE-2025-61911","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/61xxx/CVE-2025-61911.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/61xxx/CVE-2025-61911.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-24QM-M6RX-5FXV","CGA-46CG-WF97-27VX","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:02:15.529Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-10-14T14:57:34.174Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:33:03.990Z","stale":false,"partial":false}}