{"id":"JLSEC-2026-1260","aliases":["JLSEC-2026-1260"],"related":["CVE-2026-56288","EUVD-2026-42556","GHSA-m3j2-9m66-r96h"],"kind":"vulnerability","state":"published","title":"GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified...","summary":"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.\nAn attacker can trigger this condition with a malicious patch file, causing the utility to crash and resulting in a denial of service.\n\nThis issue has been fixed in the commit e6d6a4e021660679d7fc9150f981d4920f722313","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"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.\nAn attacker can trigger this condition with a malicious patch file, causing the utility to crash and resulting in a denial of service.\n\nThis issue has been fixed in the commit e6d6a4e021660679d7fc9150f981d4920f722313","format":"markdown","source":"jlsec"}],"published":"2026-08-12T14:41:02.997Z","modified":"2026-08-12T14:58:45.558Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"Julia Security Advisories","scheme":"CVSS:4.0","vector":"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"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Julia","package":"patch_jll","purl":"pkg:julia/patch_jll?uuid=c7bec4a6-5215-51fd-b0a3-64ceaaad3a34","source":"jlsec"}],"references":[{"url":"https://cert.pl/en/posts/2026/07/CVE-2026-56288","tags":["web"],"sources":["jlsec"]},{"url":"https://cgit.git.savannah.gnu.org/cgit/patch.git","tags":["web"],"sources":["jlsec"]},{"url":"https://cgit.git.savannah.gnu.org/cgit/patch.git/","tags":["web"],"sources":["jlsec"]},{"url":"https://cgit.git.savannah.gnu.org/cgit/patch.git/commit/?id=e6d6a4e021660679d7fc9150f981d4920f722313","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/advisories/GHSA-m3j2-9m66-r96h","tags":["web"],"sources":["jlsec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56288","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-1260","url":"https://osv.dev/vulnerability/JLSEC-2026-1260","licence":"CC-BY-4.0","modified":"2026-08-12T14:58:45.558Z"}],"updatedAt":"2026-11-25T22:56:25.918Z"}