5.5

CVE-2026-56289: Loop with Unreachable Exit Condition in GNU patch

Analyzed
AliasesRHSA-2026:37468UBUNTU-CVE-2026-56289DEBIAN-CVE-2026-56289
Published 09-07-2026Last modified 09-07-2026

Vulnerability summary

CVE-2026-56289 is a medium (CVSS 5.5) Loop with Unreachable Exit Condition vulnerability in gnu patch. EPSS estimates a 0.11% chance of exploitation in the next 30 days, higher than 1.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.6, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.11%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 9 · Related 8

Timeline

  1. 09-07-2026
    PublishedVulnerability first disclosed.
  2. 09-07-2026
    Last modifiedVulnerability information updated.

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

CVSS metrics

8 scores · 6 sources · 2 versions

EPSS trend

Probability

0.11%

Chance of exploitation in the next 30 days

Percentile

2%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.11% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • patch< 2.8.1-r0
Debian1 product
  • patchAll versions (No fix recorded)
Gnu1 product
Redhat1 product
  • patch< 0:2.8-4.2.hum1
Ubuntu1 product
  • patchAll versions (No fix recorded)

5 vendors · 5 products

References

14 links
Show all 14 references