CVE-2021-46823Python-ldap
Medium 6.5
Follow: this CVE · Python-ldap · Python-ldap We alert you by email or Slack (account required).
- Priority
- 39
- CVSS 3.1
- 6.5
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 81
- Auth required
- Yes
- Published
- Jun 18, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
What happens
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
- Apply the vendor's security update for Python-ldap.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | python-ldap |
< 3.4.0 |
3.4.0 |
pip install "python-ldap>=3.4.0" |
| PyPI | python-ldap |
< 3.4.0 |
3.4.0 |
pip install "python-ldap>=3.4.0" |
| PyPI | python-ldap |
< 3.4.0 |
3.4.0 |
pip install "python-ldap>=3.4.0" |
Per OSV / GitHub Advisories (GHSA-qfr5-wjpw-q4c4, GHSA-r8wq-qrxc-hmcm, PYSEC-2026-912). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python-ldap | python-ldap | < 3.4.0 |
Official sources
References
Links published by the sources. Open them with care.
- exchange.xforce.ibmcloud.com Third Party Advisory VDB Entry
- github.com Third Party Advisory