{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-56289 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-56289 is a medium-severity denial of service vulnerability in GNU patch, published on 9 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-56289 and fix it if it is affected.\n\nWhat it is: CVE-2026-56289 is a medium-severity denial of service vulnerability in GNU patch, published on 9 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-56289 in the wild and no public exploit code.\n\nAffected product: GNU patch. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2026-56289/ (Markdown: https://insights.sbomify.com/CVE-2026-56289/index.md)","id":"CVE-2026-56289","markdown":"https://insights.sbomify.com/CVE-2026-56289/index.md","name":"CVE-2026-56289","record":{"aliases":["AZL-92151","DEBIAN-CVE-2026-56289","ECHO-6808-09a0-f94e","GHSA-3m3r-f94v-4mf8","JLSEC-2026-1261","RHSA-2026:37468","UBUNTU-CVE-2026-56289"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GNU patch utility","requires_auth":"none","summary":"An attacker can cause a denial of service in GNU patch by supplying a malicious patch file with large line offsets, leading to infinite loops and high CPU usage.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CERT-PL","cpe":[{"product":"patch","vendor":"gnu"}],"cvss":{"score":4.6,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L","version":"4.0"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"description":"GNU patch is vulnerable to a denial of service (DoS) due to improper validation of hunk (single block of changes in diff) line offsets in unified-diff input. A specially crafted patch can specify an extremely large line number, causing the application to enter an effectively infinite processing loop while attempting to locate the requested position.\nThis results in excessive CPU consumption and prevents the process from completing.\nAn attacker can trigger this behavior by supplying a malicious patch file, causing the utility to become unresponsive and require manual termination.\n\nThis issue has been fixed in the commit faba04ef4f2b410257f76c1b9dc85e350929c4b9","ecosystems":["Red Hat:hummingbird:1"],"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":"Loop with Unreachable Exit Condition in GNU patch","id":"CVE-2026-56289","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":1,"n_references":3,"next":{"headline":"Joomlack Page Builder Improper Access Control","id":"CVE-2026-56290"},"packages":[{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:2.8-4.2.hum1"],"introduced":["0"],"last_affected":[],"package":"patch","purl":"pkg:rpm/redhat/patch","source":"RHSA-2026:37468"}],"prev":{"headline":"NULL Pointer Dereference in GNU patch","id":"CVE-2026-56288"},"products":["patch"],"published":"2026-07-09","related":[{"cvss_score":7.8,"headline":"Command injection in n/a","id":"CVE-2018-20969","kev_date_added":null,"published":"2019-08-16"},{"cvss_score":7.5,"headline":"Use after free in n/a","id":"CVE-2018-6952","kev_date_added":null,"published":"2018-02-13"},{"cvss_score":5.9,"headline":"Path traversal in n/a","id":"CVE-2019-13636","kev_date_added":null,"published":"2019-07-17"},{"cvss_score":5.5,"headline":"Null dereference in n/a","id":"CVE-2021-45261","kev_date_added":null,"published":"2021-12-22"},{"cvss_score":5.5,"headline":"Use after free in n/a","id":"CVE-2019-20633","kev_date_added":null,"published":"2020-03-25"},{"cvss_score":5.5,"headline":"Memory corruption in n/a","id":"CVE-2016-10713","kev_date_added":null,"published":"2018-02-13"},{"cvss_score":4.6,"headline":"NULL Pointer Dereference in GNU patch","id":"CVE-2026-56288","kev_date_added":null,"published":"2026-07-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["GNU"]},"summary":"An attacker can cause a denial of service in GNU patch by supplying a malicious patch file with large line offsets, leading to infinite loops and high CPU usage.","url":"https://insights.sbomify.com/CVE-2026-56289/"}