CVE Catalog

CVE-2026-56289

MediumCVSS 5.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.13%

3th percentile - higher than 3% of all known CVEs

Summary

GNU Patch is vulnerable to a denial of service (DoS) due to improper validation of hunk line offsets in unified-diff input. A specially crafted patch can specify an extremely large line number, causing an infinite processing loop and excessive CPU consumption.

Risk Assessment

An attacker can supply a malicious patch file, causing the patch utility to become unresponsive and require manual termination, potentially disrupting systems that rely on automated patching.

Recommendation

Immediately update GNU Patch to a version containing commit faba04ef4f2b410257f76c1b9dc85e350929c4b9 or later. Until updated, avoid applying patches from untrusted sources.

Other vulnerabilities in GNU Patch

See all
Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS