CVE-2018-1000156

Name
CVE-2018-1000156
Description
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
Third Party Advisory https://twitter.com/kurtseifried/status/982028968877436928
Vendor Advisory https://savannah.gnu.org/bugs/index.php?53566
Issue Tracking https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19
Third Party Advisory http://rachelbythebay.com/w/2018/04/05/bangpatch/
Third Party Advisory https://usn.ubuntu.com/3624-1/
Third Party Advisory https://usn.ubuntu.com/3624-2/
Mailing List https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html
Third Party Advisory https://access.redhat.com/errata/RHSA-2018:1200
Third Party Advisory https://access.redhat.com/errata/RHSA-2018:1199
Third Party Advisory https://access.redhat.com/errata/RHSA-2018:2097
Third Party Advisory https://access.redhat.com/errata/RHSA-2018:2096
Third Party Advisory https://access.redhat.com/errata/RHSA-2018:2095
Third Party Advisory https://access.redhat.com/errata/RHSA-2018:2094
Third Party Advisory https://access.redhat.com/errata/RHSA-2018:2093
Third Party Advisory https://access.redhat.com/errata/RHSA-2018:2092
Third Party Advisory https://access.redhat.com/errata/RHSA-2018:2091
Third Party Advisory https://security.gentoo.org/glsa/201904-17
BUGTRAQ https://seclists.org/bugtraq/2019/Jul/54
BUGTRAQ https://seclists.org/bugtraq/2019/Aug/29
MISC http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
cve@mitre.org https://web.archive.org/web/20180405231329/https://twitter.com/kurtseifried/status/982028968877436928

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:gnu:patch:2.7.6:*:*:*:*:*:*:* patch == None == 2.7.6

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
patch edge-main 2.7.6-r10 Natanael Copa <ncopa@alpinelinux.org> fixed
patch edge-main 2.7.6-r9 Natanael Copa <ncopa@alpinelinux.org> fixed
patch edge-main 2.7.6-r8 Natanael Copa <ncopa@alpinelinux.org> fixed
patch edge-main 2.7.6-r7 Natanael Copa <ncopa@alpinelinux.org> fixed
patch edge-main 2.7.6-r6 Natanael Copa <ncopa@alpinelinux.org> fixed
patch edge-main 2.7.6-r5 None possibly vulnerable
patch edge-main 2.7.6-r4 None possibly vulnerable
patch edge-main 2.7.6-r2 None possibly vulnerable
patch 3.22-main 2.7.6-r7 None fixed
patch 3.22-main 2.7.6-r6 None fixed
patch 3.22-main 2.7.6-r5 None possibly vulnerable
patch 3.22-main 2.7.6-r4 None possibly vulnerable
patch 3.22-main 2.7.6-r2 None possibly vulnerable
patch 3.21-main 2.7.6-r10 Natanael Copa <ncopa@alpinelinux.org> fixed
patch 3.21-main 2.7.6-r7 None fixed
patch 3.21-main 2.7.6-r6 None fixed
patch 3.21-main 2.7.6-r5 None possibly vulnerable
patch 3.21-main 2.7.6-r4 None possibly vulnerable
patch 3.21-main 2.7.6-r2 None possibly vulnerable
patch 3.20-main 2.7.6-r10 Natanael Copa <ncopa@alpinelinux.org> fixed
patch 3.20-main 2.7.6-r7 None fixed
patch 3.20-main 2.7.6-r6 None fixed
patch 3.20-main 2.7.6-r5 None possibly vulnerable
patch 3.20-main 2.7.6-r4 None possibly vulnerable
patch 3.20-main 2.7.6-r2 None possibly vulnerable
patch 3.19-main 2.7.6-r10 Natanael Copa <ncopa@alpinelinux.org> fixed
patch 3.19-main 2.7.6-r7 None fixed
patch 3.19-main 2.7.6-r6 None fixed
patch 3.19-main 2.7.6-r5 None possibly vulnerable
patch 3.19-main 2.7.6-r4 None possibly vulnerable
patch 3.19-main 2.7.6-r2 None possibly vulnerable
patch 3.18-main 2.7.6-r10 Natanael Copa <ncopa@alpinelinux.org> fixed
patch 3.18-main 2.7.6-r6 None fixed
patch 3.17-main 2.7.6-r9 Natanael Copa <ncopa@alpinelinux.org> fixed
patch 3.17-main 2.7.6-r8 Natanael Copa <ncopa@alpinelinux.org> fixed
patch 3.17-main 2.7.6-r6 None fixed
patch 3.12-main 2.7.6-r7 Natanael Copa <ncopa@alpinelinux.org> fixed
patch 3.12-main 2.7.6-r6 Natanael Copa <ncopa@alpinelinux.org> fixed
patch 3.11-main 2.7.6-r7 Natanael Copa <ncopa@alpinelinux.org> fixed
patch 3.11-main 2.7.6-r6 Natanael Copa <ncopa@alpinelinux.org> fixed
patch 3.10-main 2.7.6-r6 Natanael Copa <ncopa@alpinelinux.org> fixed