{"schemaVersion":3,"id":"CVE-2021-46823","aliases":["MGASA-2022-0310","GHSA-qfr5-wjpw-q4c4","GHSA-r8wq-qrxc-hmcm","PYSEC-2026-912","UBUNTU-CVE-2021-46823","USN-5508-1","DEBIAN-CVE-2021-46823"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-06-18T15:27:17.000Z","modified":"2024-08-04T05:17:42.836Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01943,"percentile":0.79875,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.04599999999999986,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01897},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01943,"percentile":0.79875}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01897,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01943,"percentile":0.79875}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity","description":"The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/1333.html"}],"affected":[{"vendor":"debian","product":"python-ldap","name":"python-ldap","label":"python-ldap","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-ldap","purlType":"deb","versions":[{"text":"< 3.4.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python-ldap","name":"python-ldap","label":"python-ldap","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python-ldap","purlType":"deb","versions":[{"text":"< 3.0.0-1ubuntu0.2","noFixRecorded":false,"fixedIn":null},{"text":"< 3.2.0-4ubuntu2.1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.2.0-4ubuntu7.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.0-1ubuntu0.2 | < 3.2.0-4ubuntu2.1 | < 3.2.0-4ubuntu7.1","eol":null,"hubHref":null},{"vendor":"mageia","product":"python-ldap","name":"python-ldap","label":"python-ldap","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/python-ldap","purlType":"rpm","versions":[{"text":"< 3.3.1-1.1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.3.1-1.1.mga8","eol":null,"hubHref":null},{"vendor":"PyPI","product":"python-ldap","name":"python-ldap","label":"python-ldap","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/python-ldap","purlType":"pypi","versions":[{"text":"< 3.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.0","eol":null,"hubHref":null},{"vendor":"python-ldap","product":"python-ldap","name":"python-ldap","label":"python-ldap","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.0","eol":null,"hubHref":"/vendor/python-ldap/python-ldap"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/python-ldap/python-ldap/security/advisories/GHSA-r8wq-qrxc-hmcm","label":"github.com/python-ldap/python-ldap/security/advisories/GHSA-r8wq-qrxc-hmcm","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Third Party Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/221507","label":"exchange.xforce.ibmcloud.com/vulnerabilities/221507","hostname":"exchange.xforce.ibmcloud.com","tags":["X Refsource MISC","WEB","REPORT","Third Party Advisory","VDB Entry"]},{"url":"https://advisories.mageia.org/MGASA-2022-0310.html","label":"advisories.mageia.org/MGASA-2022-0310.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=30627","label":"bugs.mageia.org/show_bug.cgi?id=30627","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46823","label":"nvd.nist.gov/vuln/detail/CVE-2021-46823","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://ubuntu.com/security/notices/USN-5508-1","label":"ubuntu.com/security/notices/USN-5508-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://github.com/python-ldap/python-ldap","label":"github.com/python-ldap/python-ldap","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/python-ldap/python-ldap/issues/424","label":"github.com/python-ldap/python-ldap/issues/424","hostname":"github.com","tags":["WEB"]},{"url":"https://pypi.org/project/python-ldap","label":"pypi.org/project/python-ldap","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-qfr5-wjpw-q4c4","label":"github.com/advisories/GHSA-qfr5-wjpw-q4c4","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-46823","label":"ubuntu.com/security/CVE-2021-46823","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-46823","label":"www.cve.org/CVERecord?id=CVE-2021-46823","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-46823","label":"security-tracker.debian.org/tracker/CVE-2021-46823","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-06-18T15:27:17.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T05:17:42.836Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T04:23:57.157Z","stale":false,"partial":false}}