🛡️ CVE-2026-56289 — patch

🟡 CVSS 5.5 — Medium ✅ No Known Exploit CWE-835 NVD
5.5
CVSS Score
0 Low4 Medium7 High9 Critical10

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

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

Weakness class

CVE-2026-56289 is classified as CWE-835: Infinite Loop. A loop condition can never become false for some inputs, hanging the process.

Affected software

CVE-2026-56289 is recorded against 1 package.

  • patch (fixed in 2.8.0)

Timeline and source

Published on 9 July 2026 and last revised on 13 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

cert.pl
cgit.git.savannah.gnu.org
cgit.git.savannah.gnu.org

Details

Severity MEDIUM
CVSS Score 5.5
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE CWE-835
Public Exploit ✅ No
Source NVD
Published 2026-07-09
Updated 2026-08-11
Modified 2026-07-13

Affected Packages

Software From version Fixed in
patch 2.8.0

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in patch

CVE-2026-56289 is rated CVSS 5.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.