# JLSEC-2026-1260: GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified...

- Severity: Medium 5.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-12T14:41:02.997Z
- Modified: 2026-08-12T14:58:45.558Z
- Related: CVE-2026-56288, EUVD-2026-42556, GHSA-m3j2-9m66-r96h

## 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

(As written by Julia Security Advisories.)

## Affected

- patch_jll (Julia): all versions

## Every score

- Julia Security Advisories: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Julia Security Advisories: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://cert.pl/en/posts/2026/07/CVE-2026-56288> (web)
- <https://cgit.git.savannah.gnu.org/cgit/patch.git> (web)
- <https://cgit.git.savannah.gnu.org/cgit/patch.git/> (web)
- <https://cgit.git.savannah.gnu.org/cgit/patch.git/commit/?id=e6d6a4e021660679d7fc9150f981d4920f722313> (web)
- <https://github.com/advisories/GHSA-m3j2-9m66-r96h> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-56288> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-1260](https://osv.dev/vulnerability/JLSEC-2026-1260), CC-BY-4.0, modified 2026-08-12

---

Page: https://cve.day/JLSEC-2026-1260 · Whole record: https://cve.day/JLSEC-2026-1260.json · Rebuilt by cve.day 2026-11-25T22:56:25.918Z
