Red Hat VEX
RHVEX-CVE-2025-61911
python-ldap: sanitization bypass in ldap.filter.escape_filter_chars
Details
A sanitization bypass vulnerability has been discovered in python-ldap’s ldap.filter.escape_filter_chars method. When a crafted list or dict object is supplied as the assertion_value parameter with escape_mode=1, the method may skip escaping special characters. This can allow an attacker to inject unescaped special characters into LDAP filters, leading to possible LDAP injection attacks which could disclose or manipulate data.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | python3-ldap | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:6 | python-ldap | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-ldap | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | python3-ldap | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | python3-ldap | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2025-61911
- https://bugzilla.redhat.com/show_bug.cgi?id=2403228
- https://www.cve.org/CVERecord?id=CVE-2025-61911
- https://nvd.nist.gov/vuln/detail/CVE-2025-61911
- https://github.com/python-ldap/python-ldap/commit/3957526fb1852e84b90f423d9fef34c7af25b85a
- https://github.com/python-ldap/python-ldap/releases/tag/python-ldap-3.4.5
- https://github.com/python-ldap/python-ldap/security/advisories/GHSA-r7r6-cc7p-4v5m