Improper input validation in Patch - CVE-2018-1000156

 

Improper input validation in Patch - CVE-2018-1000156

Published: April 7, 2018 / Updated: April 10, 2018


Vulnerability identifier: #VU11646
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-1000156
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists in the EDITOR_PROGRAM invocation due to improper input validation. A remote attacker can send a specially crafted patch file and execute arbitrary code.

Successful exploitation of the vulnerability may result in system compromise.


Affected software

Patch
Arch Linux
Amazon Linux AMI
Gentoo Linux
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux EUS Compute Node
SUSE Linux
Slackware Linux
Fedora
patch (Alpine package)
patch (Debian package)
patch

How to mitigate CVE-2018-1000156

Install update from vendor's website.

patch (Alpine package) - update to 2.7.6-r0
patch (Debian package) - update to 2.7.5-1+deb9u2
patch - addressed in versions 2.7.6-4.fc26, 2.7.6-4.fc27, 2.7.6-4.fc28

External References

Related Security Bulletins