Vulnerabilities

Security fix · CVE-2026-56289

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.

Published Jul 9, 2026 · catalog updated Nov 5, 2026 · GNU patch is vulnerable

Last checked Nov 5, 2026. A connected source was read within the last 7 days.

Check if you run it

No confirmed exploitation is on record for CVE-2026-56289. EPSS is 0.11%. Act only if a listed version of GNU patch is vulnerable is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (GNU patch is vulnerable).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
Medium5.5
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.11%
Remediation
Advisory link
Affected products
Alpine:v3.24 patch

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

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • Alpine:v3.24 patch0 → 2.8.1-r0

How to fix CVE-2026-56289

  • Upgrade

    CVE-2026-56289 lists a fix boundary at 2.8.1-r0. Compare the installed build with that boundary before you change production.

  • Version check

    Fixed in 2.8.1-r0

  • Advisory

    Open the cve_org record and follow its fix.

  • Official advisories

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2026-56289. EPSS is 0.11%. Act only if a listed version of GNU patch is vulnerable is installed.

Which versions are affected?

Compare what you have installed with 0 → 2.8.1-r0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

No weakness class is stored. EPSS 0.11%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Jul 9, 2026 · Trivy Vulnerability DB

    Detected

    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 pr

  2. Nov 5, 2026 · Trivy Vulnerability DB

    Fix available

    patch fixed in 2.8.1-r0

  3. Nov 5, 2026 · Trivy Vulnerability DB

    Fix available

    patch fixed in 2.8.1-r0

  4. Nov 5, 2026 · Trivy Vulnerability DB

    Updated

    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 pr

Sources

  • CVE.orgVulnerability recordCVE-2026-56289

    Official CVE identifier

    cve.org
  • Trivy Vulnerability DBPackage advisoryALPINE-CVE-2026-56289

    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 infi

    osv.dev

References

Freshness

Last verified in this catalog Nov 5, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • CVE.orgNov 5, 2026
  • Trivy Vulnerability DBNov 5, 2026