NULL Pointer Dereference Affecting patch package, versions <2.8-2+e4


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.12% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-PATCH-17982169
  • published15 Jul 2026
  • disclosed9 Jul 2026

Introduced: 9 Jul 2026

CVE-2026-56288  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade Echo:latest patch to version 2.8-2+e4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream patch package and not the patch package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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 Base Scores

version 3.1