CVE-2026-56289: GNU patch is vulnerable to a denial of service (DoS) due to improper validation of hunk (single block of chang
CVE-2026-56289 is a medium-severity flaw (CVSS 5.5) affecting patch. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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. This results in excessive CPU consumption and prevents the process from completing. An attacker ca
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.5 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.1% (top 98%) |
| CISA exploited list | No |
| Weakness | CWE-835 |
| Published | 2026-07-09 |
| Last modified | 2026-10-25 |
Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Advisories and coverage
Official advisories
- CERT Polska: Vulnerabilities in GNU patch software 2026-07-09
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-56289?
patch: upgrade to newer than 2.8.0. Exact commands for each OS are on this page.
Is CVE-2026-56289 being exploited?
CVE-2026-56289 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-56289 affect?
CVE-2026-56289 affects patch. Severity is medium (CVSS 5.5). 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
How urgent is CVE-2026-56289?
Priority 20/100. No elevated risk signals yet.
Related CVEs
- CVE-2026-56288 MEDIUM 5.5 UPGRADE GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch f