Skip to content

CVE-2018-1000156 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 t...

HighCVSS 7.8 EPSS 5.3%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
debian/patch(Debian:12) < 2.7.6-2 2.7.6-2
debian/patch(Debian:13) < 2.7.6-2 2.7.6-2
debian/patch(Debian:14) < 2.7.6-2 2.7.6-2
GNU patch = 2.7.6 No fix listed
Canonical Ubuntu Linux = 12.04 No fix listed
Canonical Ubuntu Linux = 14.04 No fix listed
Canonical Ubuntu Linux = 16.04 No fix listed
Canonical Ubuntu Linux = 17.10 No fix listed
debian linux = 7.0 No fix listed
redhat enterprise linux desktop = 6.0 No fix listed
redhat enterprise linux desktop = 7.0 No fix listed
redhat enterprise linux server = 6.0 No fix listed
redhat enterprise linux server = 7.0 No fix listed
redhat enterprise linux server aus = 6.4 No fix listed
redhat enterprise linux server aus = 6.5 No fix listed
redhat enterprise linux server aus = 6.6 No fix listed
redhat enterprise linux server aus = 7.2 No fix listed
redhat enterprise linux server aus = 7.3 No fix listed
redhat enterprise linux server aus = 7.4 No fix listed
redhat enterprise linux server aus = 7.6 No fix listed
redhat enterprise linux server eus = 6.7 No fix listed
redhat enterprise linux server eus = 7.3 No fix listed
redhat enterprise linux server eus = 7.4 No fix listed
redhat enterprise linux server eus = 7.5 No fix listed
redhat enterprise linux server eus = 7.6 No fix listed
Show 33 more
ProductAffected versionsFixed in
redhat enterprise linux server tus = 6.6 No fix listed
redhat enterprise linux server tus = 7.2 No fix listed
redhat enterprise linux server tus = 7.3 No fix listed
redhat enterprise linux server tus = 7.4 No fix listed
redhat enterprise linux server tus = 7.6 No fix listed
redhat enterprise linux workstation = 6.0 No fix listed
redhat enterprise linux workstation = 7.0 No fix listed
alpine/patch(Alpine:v3.10) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.11) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.12) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.13) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.14) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.15) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.16) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.17) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.18) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.19) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.20) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.21) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.22) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.23) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.24) < 2.7.6-r6 2.7.6-r6
alpine/patch(Alpine:v3.7) < 2.7.6-r0 2.7.6-r0
alpine/patch(Alpine:v3.8) < 2.7.6-r4 2.7.6-r4
alpine/patch(Alpine:v3.9) < 2.7.6-r6 2.7.6-r6
ubuntu/patch(Ubuntu:14.04) < 2.7.1-4ubuntu2.4 2.7.1-4ubuntu2.4
ubuntu/patch(Ubuntu:14.04) = 2.7.1-3 No fix listed
ubuntu/patch(Ubuntu:14.04) = 2.7.1-4 No fix listed
ubuntu/patch(Ubuntu:14.04) = 2.7.1-4ubuntu1 No fix listed
ubuntu/patch(Ubuntu:14.04) = 2.7.1-4ubuntu2 No fix listed
ubuntu/patch(Ubuntu:14.04) = 2.7.1-4ubuntu2.3 No fix listed
ubuntu/patch(Ubuntu:16.04) < 2.7.5-1ubuntu0.16.04.1 2.7.5-1ubuntu0.16.04.1
ubuntu/patch(Ubuntu:16.04) = 2.7.5-1 No fix listed

References