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

Published Jul 9, 2026
·
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 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

Other sources

Loop with Unreachable Exit Condition in GNU patch

Microsoft

Affected Software

4 affected componentsFixes available
GNU patch
GNU patch<=2.8.0
Microsoft azl3 patch 2.7.6-9<2.7.6-10
2.7.6-10
Microsoft azl3 patch 2.7.6-10<2.7.6-10
2.7.6-10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.7.6-10
  2. Upgrade

    Upgrade GNU patch to a version that resolves this vulnerability.

    Fixed in faba04ef4f2b410257f76c1b9dc85e350929c4b9

Event History

Jul 9, 2026
CVE Published
via MITRE·09:29 AM
Data Sourced
via MITRE·09:29 AM
DescriptionWeakness
Data Sourced
via NVD·11:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 10, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:01 AM
DescriptionSeverity
Updated
via Microsoft·08:01 AM
Affected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-56289?

CVE-2026-56289 has a medium severity rating of 4.6 according to the CVSS score.

2

How does CVE-2026-56289 affect GNU patch?

CVE-2026-56289 causes a denial of service (DoS) due to an infinite processing loop triggered by a specially crafted patch.

3

What versions of GNU patch are impacted by CVE-2026-56289?

CVE-2026-56289 affects multiple versions of GNU patch released before the remediation.

4

How can I mitigate CVE-2026-56289 in my environment?

Mitigating CVE-2026-56289 can typically be achieved by upgrading to the latest version of GNU patch that addresses the vulnerability.

5

Is there any indication of public exploitation for CVE-2026-56289?

As of its publication date, there are no known instances of public exploitation for CVE-2026-56289.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203