Bug 2044615 (CVE-2021-46823) - CVE-2021-46823 python-ldap: Regular expression denial of service in LDAP schema parser
Summary: CVE-2021-46823 python-ldap: Regular expression denial of service in LDAP sche...
Keywords:
Status: NEW
Alias: CVE-2021-46823
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2046511 2046512 2051813 2051814 2051815 2051816 2051817 2051819
Blocks: 2044617
TreeView+ depends on / blocked
 
Reported: 2022-01-24 20:09 UTC by Pedro Sampaio
Modified: 2025-06-17 08:27 UTC (History)
37 users (show)

Fixed In Version: python-ldap 3.4.0
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Pedro Sampaio 2022-01-24 20:09:09 UTC
The LDAP schema parser of python-ldap 3.3.1 and earlier are vulnerable to a regular expression denial-of-service attack. The issue affects clients that use ldap.schema package to parse LDAP schema definitions from an untrusted source.

References:

https://github.com/python-ldap/python-ldap/security/advisories/GHSA-r8wq-qrxc-hmcm

Comment 3 Thomas Eagle 2022-01-26 20:42:36 UTC
while flaw is present in AAP and Ansible Tower, and can be corrected by upgrading to python-ldap 3.4, issue is mitigated due to current input sanitization that occurs in the code.

Comment 4 Summer Long 2022-01-28 01:47:12 UTC
Upstream commits: https://github.com/python-ldap/python-ldap/pull/444/commits

Comment 7 Sandipan Roy 2022-02-08 05:55:26 UTC
Created python-ldap tracking bugs for this issue:

Affects: fedora-all [bug 2051816]


Created python-ldap3 tracking bugs for this issue:

Affects: epel-all [bug 2051817]
Affects: fedora-all [bug 2051815]
Affects: openstack-rdo [bug 2051813]

Comment 10 Avram Lubkin 2022-03-30 14:24:06 UTC
Why are there bugs against python-ldap3 if the bug is in a different package, python-ldap? They are different projects that do not share a codebase.

Comment 15 juneau 2022-09-27 12:21:18 UTC
marking Services notaffected per ./static/#/flaw/2044615#comment3


Note You need to log in before you can comment on or make changes to this bug.