Skip to content
OpenAdvisories
Medium · 6.5 CVE-2021-46823 EUVD-2022-6131GHSA-qfr5-wjpw-q4c4GHSA-r8wq-qrxc-hmcmPYSEC-2026-912

Denial of Service in python-ldap

Published Jun 18, 2022 · Updated Aug 4, 2024 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-ldap 3.4.0-1 —
Debian 13 python-ldap 3.4.0-1 —
Debian 12 python-ldap 3.4.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS python-ldap 3.2.0-4ubuntu7.1 USN-5508-1
Ubuntu 20.04 LTS python-ldap 3.2.0-4ubuntu2.1 USN-5508-1
Ubuntu 18.04 LTS python-ldap 3.0.0-1ubuntu0.2 USN-5508-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 python-ldap 2.4.15-2.amzn2.0.3 ALAS2-2024-2406

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) python-ldap 3.4.0-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI python-ldap < 3.4.0 3.4.0 GHSA-qfr5-wjpw-q4c4

Advisories 3

References