Back to CVE records
Medium 5.5Published Jul 9, 2026

CVE-2026-56288GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file.

Updated under an hour ago ()

Does this affect you?

It affects gnu patch. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file. Improper handling of consecutive end-of-file newline markers can corrupt internal hunk (single block of changes in diff) data structures, causing the application to pass a NULL pointer to fwrite() during patch processing. An attacker can trigger this condition with a malicious patch file, causing the utility to crash and resulting in a denial of service. This issue has been fixed in the commit e6d6a4e021660679d7fc9150f981d4920f722313

CVSS
5.5 MEDIUM (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-476
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Not given
NVD analysis
Analyzed
Record last updated
Jul 13, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
gnu patch
gnu:patch
through 2.8.0
NVD

References

  • third-party-advisory
  • patch, product
  • patch

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.