Skip to main content
VulnerabilityPublished

CVE-2026-56288: GNU patch · NULL Pointer Dereference

Affects GNU patchSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 4.6 Medium.

Data as of 21 Nov 2026, 17:35 UTC

CVSS 4.0 base score
4.6Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 1% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
GNUpatchAffected
  • <=2.8.0
Fixed in–

AI-suggested

A fix for this vulnerability is available and has been committed (commit e6d6a4e021660679d7fc9150f981d4920f722313). Users should update GNU patch to the fixed version containing this commit. Patch status is not explicitly confirmed in the advisory; therefore, verify the vendor advisory or source repository for the fixed version and apply the update accordingly.

Description

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

References

Community reviews

Loading reviews…