{"answers":{"affected":"5 open source packages ship an affected version, including python-ldap. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-46823 in the wild and no public exploit code.","fix":"Upgrade python-ldap to 3.4.0 or later.","what":"CVE-2021-46823 is a medium-severity denial of service vulnerability in n/a, published on 18 Jun 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-46823 and fix it if it is affected.\n\nWhat it is: CVE-2021-46823 is a medium-severity denial of service vulnerability in n/a, published on 18 Jun 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-46823 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- python-ldap (PyPI): affected all versions; fixed in 3.4.0\n- python-ldap (PyPI): affected all versions; fixed in 3.4.0\n- python-ldap (PyPI): affected all versions; fixed in 3.4.0\n- python-ldap (PyPI): affected all versions; fixed in 3.4.0\n- python-ldap (PyPI): affected all versions; fixed in 3.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-46823/ (Markdown: https://insights.sbomify.com/CVE-2021-46823/index.md)","id":"CVE-2021-46823","markdown":"https://insights.sbomify.com/CVE-2021-46823/index.md","name":"CVE-2021-46823","record":{"aliases":["AZL-9960","DEBIAN-CVE-2021-46823","GHSA-qfr5-wjpw-q4c4","GHSA-r8wq-qrxc-hmcm","MGASA-2022-0310","OESA-2022-1792","OESA-2022-1809","PYSEC-2026-912","UBUNTU-CVE-2021-46823","USN-5508-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python LDAP library","requires_auth":"low_privilege","summary":"A remote authenticated attacker can cause a denial of service in python-ldap by sending crafted regex input to the schema parser.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"python-ldap","vendor":"python-ldap"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Denial of Service in python-ldap","id":"CVE-2021-46823","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2021"},"n_packages":5,"n_references":2,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-46824"},"packages":[{"ecosystem":"PyPI","fixed":["3.4.0"],"introduced":["0"],"last_affected":[],"package":"python-ldap","purl":null,"source":"GHSA-qfr5-wjpw-q4c4"},{"ecosystem":"PyPI","fixed":["3.4.0"],"introduced":["0"],"last_affected":[],"package":"python-ldap","purl":"pkg:pypi/python-ldap","source":"GHSA-qfr5-wjpw-q4c4"},{"ecosystem":"PyPI","fixed":["3.4.0"],"introduced":["0"],"last_affected":[],"package":"python-ldap","purl":null,"source":"GHSA-r8wq-qrxc-hmcm"},{"ecosystem":"PyPI","fixed":["3.4.0"],"introduced":["0"],"last_affected":[],"package":"python-ldap","purl":"pkg:pypi/python-ldap","source":"GHSA-r8wq-qrxc-hmcm"},{"ecosystem":"PyPI","fixed":["3.4.0"],"introduced":["0"],"last_affected":[],"package":"python-ldap","purl":"pkg:pypi/python-ldap","source":"PYSEC-2026-912"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2021-46822"},"products":["n/a"],"published":"2022-06-18","related":[{"cvss_score":5.5,"headline":"python-ldap has sanitization bypass in ldap.filter.escape_filter_chars","id":"CVE-2025-61911","kev_date_added":null,"published":"2025-10-10"},{"cvss_score":5.5,"headline":"python-ldap Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination","id":"CVE-2025-61912","kev_date_added":null,"published":"2025-10-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"A remote authenticated attacker can cause a denial of service in python-ldap by sending crafted regex input to the schema parser.","url":"https://insights.sbomify.com/CVE-2021-46823/"}