CVE-2018-1000156

patch: Malicious patch files cause ed to execute arbitrary commands

Published Apr 6, 2018 CVSS 3.0 · 7.8 High EPSS 5.3% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1348-1 patch security update
Debian DSA Debian DSA DSA-4489-1 patch security update
Ubuntu USN Ubuntu USN USN-3624-1 Patch vulnerabilities
Ubuntu USN Ubuntu USN USN-3624-2 Patch vulnerabilities