Live threats

All CVEs / Python-ldap

CVE-2021-46823Python-ldap

Medium 6.5

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python-ldap.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
python-ldappython-ldap< 3.4.0

Official sources

References

Links published by the sources. Open them with care.