# CVE-2021-46823: Denial of Service in python-ldap

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.97%, higher than 81% of CVEs (2026-12-01)
- Published: 2021-11-29T17:58:59.000Z
- Modified: 2026-07-08T06:49:50.975Z
- Also known as: GHSA-qfr5-wjpw-q4c4, GHSA-r8wq-qrxc-hmcm, PYSEC-2026-912
- Weaknesses: CWE-1333
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- python-ldap (PyPI): before 3.4.0
- python-ldap python-ldap: before 3.4.0

## Every score

- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/python-ldap/python-ldap/security/advisories/GHSA-r8wq-qrxc-hmcm> (third-party-advisory, web)
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/221507> (third-party-advisory, vdb-entry, 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)

## Sources

- CVE List: [CVE-2021-46823](https://www.cve.org/CVERecord?id=CVE-2021-46823), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-qfr5-wjpw-q4c4](https://github.com/advisories/GHSA-qfr5-wjpw-q4c4), CC-BY-4.0, modified 2026-07-08
- GitHub Advisory Database: [GHSA-r8wq-qrxc-hmcm](https://github.com/advisories/GHSA-r8wq-qrxc-hmcm), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-46823](https://nvd.nist.gov/vuln/detail/CVE-2021-46823), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-912](https://osv.dev/vulnerability/PYSEC-2026-912), CC-BY-4.0, modified 2026-07-08

---

Page: https://cve.day/CVE-2021-46823 · Whole record: https://cve.day/CVE-2021-46823.json · Rebuilt by cve.day 2026-11-25T22:58:07.668Z
