CVE-2021-46823
MEDIUM 6.5CVSS 3.1Denial 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.
- Published
- 18 Jun 2022
- Last modified
- 8 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-1333
- Also known as
- GHSA-qfr5-wjpw-q4c4GHSA-r8wq-qrxc-hmcmPYSEC-2026-912
- Sources
- NVDJSONOSV GHSA-qfr5-wjpw-q4c4JSONOSV GHSA-r8wq-qrxc-hmcmJSONOSV PYSEC-2026-912JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python-ldap | python-ldapcpe:2.3:a:python-ldap:python-ldap:*:*:*:*:*:*:*:* |
< 3.4.0 | 3.4.0 |
| OSV | PyPI | python-ldap | < 3.4.0 | 3.4.0 |
References
- https://exchange.xforce.ibmcloud.com/vulnerabilities/221507 · Third Party Advisory, VDB Entry, WEB
- https://github.com/python-ldap/python-ldap/security/advisories/GHSA-r8wq-qrxc-hmcm · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-46823 · ADVISORY
- https://github.com/python-ldap/python-ldap · PACKAGE
- https://github.com/python-ldap/python-ldap/issues/424 · WEB
- https://pypi.org/project/python-ldap · PACKAGE
- https://github.com/advisories/GHSA-qfr5-wjpw-q4c4 · ADVISORY
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 18 Jun 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Nov 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Jun 2022)