Improper Input Validation Affecting patch package, versions <2.7.6-2
Snyk CVSS
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-DEBIAN11-PATCH-516357
- published 6 Apr 2018
- disclosed 6 Apr 2018
Introduced: 6 Apr 2018
CVE-2018-1000156 Open this link in a new tabHow to fix?
Upgrade Debian:11
patch
to version 2.7.6-2 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream patch
package and not the patch
package as distributed by Debian
.
See How to fix?
for Debian:11
relevant fixed versions and status.
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.
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000156
- https://seclists.org/bugtraq/2019/Aug/29
- https://seclists.org/bugtraq/2019/Jul/54
- https://savannah.gnu.org/bugs/index.php?53566
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19
- https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html
- https://security-tracker.debian.org/tracker/CVE-2018-1000156
- https://security.gentoo.org/glsa/201904-17
- http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
- http://rachelbythebay.com/w/2018/04/05/bangpatch/
- https://twitter.com/kurtseifried/status/982028968877436928
- https://access.redhat.com/errata/RHSA-2018:1199
- https://access.redhat.com/errata/RHSA-2018:1200
- https://access.redhat.com/errata/RHSA-2018:2091
- https://access.redhat.com/errata/RHSA-2018:2092
- https://access.redhat.com/errata/RHSA-2018:2093
- https://access.redhat.com/errata/RHSA-2018:2094
- https://access.redhat.com/errata/RHSA-2018:2095
- https://access.redhat.com/errata/RHSA-2018:2096
- https://access.redhat.com/errata/RHSA-2018:2097
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2018-1000156
- https://usn.ubuntu.com/3624-1/
- https://usn.ubuntu.com/3624-2/