{"id":"CVE-2026-56289","url":"https://www.cyber-defence.io/tools/cve/CVE-2026-56289","generatedAt":"2026-10-28T00:15:28.102Z","title":"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.","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\n\n\nThis issue has been fixed in the commit faba04ef4f2b410257f76c1b9dc85e350929c4b9","published":"2026-07-09T11:16:41.000Z","lastModified":"2026-10-25T17:10:00.000Z","status":"Analyzed","sourceIdentifier":"cvd@cert.pl","cvss":{"version":"4.0","score":4.6,"severity":"MEDIUM","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/M"},"cwe":["CWE-835"],"affected":["gnu/patch"],"epss":{"score":0.00115,"percentile":0.01532,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (0.11%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"https://cert.pl/en/posts/2026/07/CVE-2026-56288","tags":["Third Party Advisory"],"source":"cvd@cert.pl"},{"url":"https://cgit.git.savannah.gnu.org/cgit/patch.git/","tags":["Patch"],"source":"cvd@cert.pl"},{"url":"https://cgit.git.savannah.gnu.org/cgit/patch.git/commit/?id=faba04ef4f2b410257f76c1b9dc85e350929c4b9","tags":["Patch"],"source":"cvd@cert.pl"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-56289","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}