{"id":"JLSEC-2026-1260","summary":"GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified...","details":"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","modified":"2026-08-12T14:58:45.558050079Z","published":"2026-08-12T14:41:02.997Z","upstream":["CVE-2026-56288","EUVD-2026-42556","GHSA-m3j2-9m66-r96h"],"database_specific":{"sources":[{"modified":"2026-07-13T14:08:47.080Z","published":"2026-07-09T11:16:40.713Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-56288","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56288","database_specific":{"status":"Analyzed"},"id":"CVE-2026-56288","imported":"2026-08-12T14:25:16.666Z"},{"imported":"2026-08-12T14:25:19.590Z","modified":"2026-07-13T15:31:42Z","published":"2026-07-09T12:30:28Z","url":"https://api.github.com/advisories/GHSA-m3j2-9m66-r96h","html_url":"https://github.com/advisories/GHSA-m3j2-9m66-r96h","id":"GHSA-m3j2-9m66-r96h"},{"published":"2026-07-09T09:29:07Z","url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-42556","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-42556","id":"EUVD-2026-42556","imported":"2026-08-12T14:25:18.032Z","modified":"2026-07-09T12:57:48Z"}],"license":"CC-BY-4.0"},"references":[{"type":"WEB","url":"https://cert.pl/en/posts/2026/07/CVE-2026-56288"},{"type":"WEB","url":"https://cgit.git.savannah.gnu.org/cgit/patch.git"},{"type":"WEB","url":"https://cgit.git.savannah.gnu.org/cgit/patch.git/"},{"type":"WEB","url":"https://cgit.git.savannah.gnu.org/cgit/patch.git/commit/?id=e6d6a4e021660679d7fc9150f981d4920f722313"},{"type":"WEB","url":"https://github.com/advisories/GHSA-m3j2-9m66-r96h"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56288"}],"affected":[{"package":{"name":"patch_jll","ecosystem":"Julia","purl":"pkg:julia/patch_jll?uuid=c7bec4a6-5215-51fd-b0a3-64ceaaad3a34"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1260.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"NVD"},{"type":"CVSS_V4","score":"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","source":"CNA"}]}