{"answers":{"affected":"3 open source packages ship an affected version, including python-ldap. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-61912 exists.","fix":"Upgrade python-ldap to 3.4.5 or later.","what":"CVE-2025-61912 is a medium-severity denial of service vulnerability in python-ldap, published on 10 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-61912 and fix it if it is affected.\n\nWhat it is: CVE-2025-61912 is a medium-severity denial of service vulnerability in python-ldap, published on 10 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-61912 exists.\n\nAffected packages and fixed versions:\n- python-ldap (PyPI): affected all versions; fixed in 3.4.5\n- python-ldap (PyPI): affected all versions; fixed in 3.4.5\n- python-ldap (PyPI): affected all versions; fixed in 3.4.5\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-2025-61912/ (Markdown: https://insights.sbomify.com/CVE-2025-61912/index.md)","id":"CVE-2025-61912","markdown":"https://insights.sbomify.com/CVE-2025-61912/index.md","name":"CVE-2025-61912","record":{"aliases":["AZL-68433","AZL-68454","DEBIAN-CVE-2025-61912","ECHO-daef-217d-eb9d","GHSA-p34h-wq7j-h5v6","OESA-2026-1248","PYSEC-2026-1846","UBUNTU-CVE-2025-61912"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python LDAP client library","requires_auth":"none","summary":"Improper escaping of null bytes in python-ldap allows attackers to cause client-side denial of service by triggering consistent failures before LDAP requests are sent.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"python-ldap","vendor":"python-ldap"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-170","name":"Improper Null Termination"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"description":"python-ldap is a lightweight directory access protocol (LDAP) client API for Python. In versions prior to 3.4.5, ldap.dn.escape_dn_chars() escapes \\x00 incorrectly by emitting a backslash followed by a literal NUL byte instead of the RFC-4514 hex form \\00. Any application that uses this helper to construct DNs from untrusted input can be made to consistently fail before a request is sent to the LDAP server (e.g., AD), resulting in a client-side denial of service. Version 3.4.5 contains a patch for the issue.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"python-ldap Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination","id":"CVE-2025-61912","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":3,"n_references":3,"next":{"headline":"Flowise is vulnerable to arbitrary file read, arbitrary file write","id":"CVE-2025-61913"},"packages":[{"ecosystem":"PyPI","fixed":["3.4.5"],"introduced":["0"],"last_affected":[],"package":"python-ldap","purl":null,"source":"GHSA-p34h-wq7j-h5v6"},{"ecosystem":"PyPI","fixed":["3.4.5"],"introduced":["0"],"last_affected":[],"package":"python-ldap","purl":"pkg:pypi/python-ldap","source":"GHSA-p34h-wq7j-h5v6"},{"ecosystem":"PyPI","fixed":["3.4.5"],"introduced":["0"],"last_affected":[],"package":"python-ldap","purl":"pkg:pypi/python-ldap","source":"PYSEC-2026-1846"}],"prev":{"headline":"python-ldap has sanitization bypass in ldap.filter.escape_filter_chars","id":"CVE-2025-61911"},"products":["python-ldap"],"published":"2025-10-10","related":[{"cvss_score":6.5,"headline":"Denial of Service in python-ldap","id":"CVE-2021-46823","kev_date_added":null,"published":"2022-06-18"},{"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"}],"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-14","vendors":["python-ldap"]},"summary":"Improper escaping of null bytes in python-ldap allows attackers to cause client-side denial of service by triggering consistent failures before LDAP requests are sent.","url":"https://insights.sbomify.com/CVE-2025-61912/"}