Denial of Service in python-ldap
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | python-ldap | < 3.4.0 | 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://github.com/python-ldap/python-ldap/issues/424
- https://pypi.org/project/python-ldap
- https://github.com/advisories/GHSA-qfr5-wjpw-q4c4
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-1333- Platform
- Python (PyPI)
- Package
python-ldap- Disclosed
- 29.11.2021
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - GHSA-qfr5-wjpw-q4c4 - CC BY 4.0
OSV / GitHub Advisory Database - GHSA-r8wq-qrxc-hmcm - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-912 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: python-ldap
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 3
- First → latest
- 11.2021 10.2025
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Medium 3
Disclosures per year
- 2021: 1
- 2022: 0
- 2023: 0
- 2024: 0
- 2025: 2
- 2026: 0
-
Denial of Service in python-ldap this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.