CVE-2026-56289
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
Description as published by the source, in English.
Key facts
- Published
- 2026-07-09
- Last modified
- 2026-10-25
- Assigned by
- cvd@cert.pl
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.1 %
higher than 2 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Gnu | Patch | ≤ 2.8.0 | Affected |
Weakness type
-
CWE-835: Loop with Unreachable Exit Condition
The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
References
- https://cert.pl/en/posts/2026/07/CVE-2026-56288
- https://cgit.git.savannah.gnu.org/cgit/patch.git/
- https://cgit.git.savannah.gnu.org/cgit/patch.git/commit/?id=faba04ef4f2b410257f76c1b9dc85…
Related at Berigo
Articles
-
Hacking group says an unpatched PeopleSoft flaw gave it FBI employee data
Same product
2026-09-26
ShinyHunters claims it used an unpatched Oracle PeopleSoft flaw to reach FBI systems and take between two and three terabytes on employees and job ap…
-
An unauthenticated request could read files off a GitLab server
Same product
2026-09-26
On 10 September 2026 GitLab patched a CVSS 10.0 flaw that, under certain conditions, let an unauthenticated user read files from the server. A day la…
-
Two SSH flaws hand attackers full control of MikroTik routers
Same product
2026-09-26
CERT Polska has disclosed six vulnerabilities in MikroTik RouterOS and confirms that a chain of two SSH flaws, dubbed MikroTrick, is used in attacks …
-
A zero day in Magento was exploited for three days before Adobe shipped a fix
Same product
2026-09-26
Sansec has seen active exploitation of CVE-2026-75650 in Magento Open Source and Adobe Commerce since 4 September 2026. The flaw scores a maximum 10.…
Services
-
Security due diligence: assessing the target company's security
Security due diligence is an independent security assessment of the target company before an investment, acquisition or strategic change. Berigo give…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.