{"id":"CVE-2021-46823","aliases":["CVE-2021-46823","GHSA-qfr5-wjpw-q4c4","GHSA-r8wq-qrxc-hmcm","PYSEC-2026-912"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of Service in python-ldap","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"https://github.com/python-ldap/python-ldap/issues/424\n\n### Impact\nThe 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.\n\n### Patches\nThe upcoming release of python-ldap 3.4.0 will contain a workaround to prevent ReDoS attacks. The schema parser refuses schema definitions with an excessive amount of backslashes.\n\n### Workarounds\nAs a workaround, users can check input for excessive amount of backslashes in schemas. More than a dozen backslashes per line are atypical.\n\n### References\n[CWE-1333](https://cwe.mitre.org/data/definitions/1333.html)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [python-ldap](https://github.com/python-ldap/python-ldap) tracker","format":"markdown","source":"ghsa"},{"lang":"es","text":"python-ldap versiones anteriores a 3.4.0, es vulnerable a una denegación de servicio cuando es usado ldap.schema para definiciones de esquemas que no son confiables, debido a un fallo de denegación de servicio de expresiones regulares (ReDoS) en el analizador de esquemas LDAP. Al enviar una entrada regex diseñada, un atacante remoto autenticado podría explotar esta vulnerabilidad para causar una condición de denegación de servicio","source":"nvd"}],"published":"2021-11-29T17:58:59.000Z","modified":"2026-07-08T06:49:50.975Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:N/A:P","score":4,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.4.0"}],"ecosystem":"PyPI","package":"python-ldap","purl":"pkg:pypi/python-ldap","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.4.0"}],"ecosystem":"PyPI","package":"python-ldap","purl":"pkg:pypi/python-ldap","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.4.0"}],"vendor":"python-ldap","product":"python-ldap","cpe":"cpe:2.3:a:python-ldap:python-ldap:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.4.0"}],"ecosystem":"PyPI","package":"python-ldap","purl":"pkg:pypi/python-ldap","source":"pysec"}],"references":[{"url":"https://github.com/python-ldap/python-ldap/security/advisories/GHSA-r8wq-qrxc-hmcm","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/221507","tags":["third-party-advisory","vdb-entry","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46823","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/python-ldap/python-ldap","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/python-ldap/python-ldap/issues/424","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/python-ldap","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-qfr5-wjpw-q4c4","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46823","url":"https://www.cve.org/CVERecord?id=CVE-2021-46823","licence":"CVE Terms of Use","modified":"2024-08-04T05:17:42.836Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qfr5-wjpw-q4c4","url":"https://github.com/advisories/GHSA-qfr5-wjpw-q4c4","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:50.975Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r8wq-qrxc-hmcm","url":"https://github.com/advisories/GHSA-r8wq-qrxc-hmcm","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:50.975Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46823","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46823","licence":"Public domain","modified":"2026-06-17T04:15:37.160Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-912","url":"https://osv.dev/vulnerability/PYSEC-2026-912","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:50.975Z"}],"updatedAt":"2026-11-25T22:58:07.668Z","epss":{"score":0.01974,"percentile":0.81067,"date":"2026-12-01T12:00:22.000Z"}}