PyPA Advisory Database
PYSEC-2026-912
Denial of Service in python-ldap
Details
python-ldap before 3.4.0 is vulnerable to a denial of service when ldap.schema is used for untrusted schema definitions, because of a regular expression denial of service (ReDoS) flaw in the LDAP schema parser. By sending crafted regex input, a remote authenticated attacker could exploit this vulnerability to cause a denial of service condition.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | python-ldap | All versions before 3.4.0 (fixed in 3.4.0) |
References
- https://github.com/python-ldap/python-ldap/security/advisories/GHSA-r8wq-qrxc-hmcm
- https://nvd.nist.gov/vuln/detail/CVE-2021-46823
- https://exchange.xforce.ibmcloud.com/vulnerabilities/221507
- https://github.com/python-ldap/python-ldap
- https://pypi.org/project/python-ldap
- https://github.com/advisories/GHSA-qfr5-wjpw-q4c4