{"id":"CVE-2015-1418","aliases":["EUVD-2015-1555","GHSA-f7qg-x7m8-x3jw"],"status":"published","title":"The do_ed_script function in pch.c in GNU patch through 2.7.6, and patch in FreeBSD 10.1 before...","description":"The do_ed_script function in pch.c in GNU patch through 2.7.6, and patch in FreeBSD 10.1 before 10.1-RELEASE-p17, 10.2 before 10.2-BETA2-p3, 10.2-RC1 before 10.2-RC1-p2, and 0.2-RC2 before 10.2-RC2-p1, allows remote attackers to execute arbitrary commands via a crafted patch file, because a '!' character can be passed to the ed program.","severity":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.03691,"percentile":0.89788,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-200"],"published":"2018-02-05T16:00:00Z","modified":"2026-06-17T00:22:23Z","products":[{"vendor":"freebsd","product":"freebsd"}],"references":[{"url":"https://ftp.openbsd.org/pub/OpenBSD/patches/5.7/common/013_patch.patch.sig","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.securityfocus.com/bid/76236","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://www.securitytracker.com/id/1033188","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"https://www.freebsd.org/security/advisories/FreeBSD-SA-15:18.bsdpatch.asc","tags":["vendor-advisory","x_refsource_FREEBSD","x_transferred","Vendor Advisory"]},{"url":"http://rachelbythebay.com/w/2018/04/05/bangpatch/","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://bugs.debian.org/894667","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-1418"},{"url":"https://github.com/advisories/GHSA-f7qg-x7m8-x3jw"}],"sources":{"cve":[{"id":"CVE-2015-1418","description":"The do_ed_script function in pch.c in GNU patch through 2.7.6, and patch in FreeBSD 10.1 before 10.1-RELEASE-p17, 10.2 before 10.2-BETA2-p3, 10.2-RC1 before 10.2-RC1-p2, and 0.2-RC2 before 10.2-RC2-p1, allows remote attackers to execute arbitrary commands via a crafted patch file, because a '!' character can be passed to the ed program.","status":"published","published":"2018-02-05T16:00:00Z","modified":"2024-08-06T04:40:18.692Z","updated_at":"2026-11-02T14:35:44.046042Z"}],"euvd":[{"id":"EUVD-2015-1555","description":"The do_ed_script function in pch.c in GNU patch through 2.7.6, and patch in FreeBSD 10.1 before 10.1-RELEASE-p17, 10.2 before 10.2-BETA2-p3, 10.2-RC1 before 10.2-RC1-p2, and 0.2-RC2 before 10.2-RC2-p1, allows remote attackers to execute arbitrary commands via a crafted patch file, because a '!' character can be passed to the ed program.","status":"published","published":"2018-02-05T16:00:00Z","modified":"2024-08-06T04:40:18Z","updated_at":"2026-11-03T02:22:15.605684Z"}],"ghsa":[{"id":"GHSA-f7qg-x7m8-x3jw","title":"The do_ed_script function in pch.c in GNU patch through 2.7.6, and patch in FreeBSD 10.1 before...","description":"The do_ed_script function in pch.c in GNU patch through 2.7.6, and patch in FreeBSD 10.1 before 10.1-RELEASE-p17, 10.2 before 10.2-BETA2-p3, 10.2-RC1 before 10.2-RC1-p2, and 0.2-RC2 before 10.2-RC2-p1, allows remote attackers to execute arbitrary commands via a crafted patch file, because a '!' character can be passed to the ed program.","status":"published","published":"2022-05-14T03:32:54Z","modified":"2023-02-02T05:08:08Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T14:52:40.925332Z"}],"nvd":[{"id":"CVE-2015-1418","description":"The do_ed_script function in pch.c in GNU patch through 2.7.6, and patch in FreeBSD 10.1 before 10.1-RELEASE-p17, 10.2 before 10.2-BETA2-p3, 10.2-RC1 before 10.2-RC1-p2, and 0.2-RC2 before 10.2-RC2-p1, allows remote attackers to execute arbitrary commands via a crafted patch file, because a '!' character can be passed to the ed program.","status":"published","published":"2018-02-05T16:29:00.3Z","modified":"2026-06-17T00:22:23.197Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":9.3,"vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T14:03:19.244941Z"}]}}
