StraitOfVuln
Latest / CVE-2026-56289

CVE-2026-56289

MediumCVSS 5.5 (v3.1)Analyzed
CVE.org ↗NVD ↗

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. This results in excessive CPU consumption and prevents the process from completing. An attacker can trigger this behavior by supplying a malicious patch file, causing the utility to become unresponsive and require manual termination. This issue has been fixed in the commit faba04ef4f2b410257f76c1b9dc85e350929c4b9

Details

CVE ID
CVE-2026-56289
Published / updated
09 Jul 2026, 11:16 UTC · last modified 25 Oct 2026, 17:10 UTC
Severity
MEDIUM
CVSS score
5.5 · v3.1 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H · Attack vector: Local
Affected vendor
Affected products
Patch
Affected versions
Patch: ≤ 2.8.0
Fixed versions
Not stated in the data. Check the vendor advisory.
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.11% probability of exploitation in the next 30 days · 2% percentile (02 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
cvd@cert.pl