{"id":"UBUNTU-CVE-2018-1000156","details":"GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear to be exploitable via a patch file processed via the patch utility. This is similar to FreeBSD's CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time.","modified":"2026-02-04T02:43:00.920227Z","published":"2018-04-06T00:00:00Z","related":["USN-3624-1","USN-3624-2"],"upstream":["CVE-2018-1000156"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-1000156"},{"type":"REPORT","url":"https://rachelbythebay.com/w/2018/04/05/bangpatch/"},{"type":"REPORT","url":"https://twitter.com/kurtseifried/status/982028968877436928"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3624-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3624-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-1000156"}],"affected":[{"package":{"name":"patch","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/patch@2.7.1-4ubuntu2.4?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.1-4ubuntu2.4"}]}],"versions":["2.7.1-3","2.7.1-4","2.7.1-4ubuntu1","2.7.1-4ubuntu2","2.7.1-4ubuntu2.3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.7.1-4ubuntu2.4","binary_name":"patch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000156.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/patch@2.7.5-1ubuntu0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-1ubuntu0.16.04.1"}]}],"versions":["2.7.5-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.7.5-1ubuntu0.16.04.1","binary_name":"patch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000156.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}