CVE-2026-56289

Source
https://cve.org/CVERecord?id=CVE-2026-56289
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-56289.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-56289
Downstream
AZL (1)
CLSA (2)
DEBIAN (1)
ECHO (1)
JLSEC (1)
MGASA (1)
OESA (1)
openSUSE (2)
RHSA (1)
SUSE (6)
UBUNTU (1)
Related
Published
2026-07-09T09:29:22Z
Modified
2026-10-27T02:47:33Z
Severity
  • 4.6 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L CVSS Calculator
Summary
Loop with Unreachable Exit Condition in GNU patch
Details

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

Database specific
{
    "cna_assigner":  "CERT-PL",
    "cwe_ids":  [
        "CWE-835"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56289.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "last_affected":  "2.8.0"
                        }
                    ],
                    "source":  "AFFECTED_FIELD",
                    "strategy":  "StandardRange"
                }
            ]
        }
    ]
}
References

Affected packages

Git / cgit.git.savannah.gnu.org/cgit/patch.git

Affected ranges

Type
GIT
Repo
https://cgit.git.savannah.gnu.org/cgit/patch.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
faba04ef4f2b410257f76c1b9dc85e350929c4b9
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "fixed":  "faba04ef4f2b410257f76c1b9dc85e350929c4b9"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-56289.json"