CVE-2015-1418

HIGH

GNU patch <2.7.6 - Command Injection

Title source: llm
STIX 2.1

Description

The do_ed_script function in pch.c in GNU patch through 2.7.6, and patch in FreeBSD 10.1 before 10.1-RELEASE-p17, 10.2 before 10.2-BETA2-p3, 10.2-RC1 before 10.2-RC1-p2, and 0.2-RC2 before 10.2-RC2-p1, allows remote attackers to execute arbitrary commands via a crafted patch file, because a '!' character can be passed to the ed program.

References (6)

Core 6
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/76236
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1033188
Vendor Advisory vendor-advisory x_refsource_freebsd
https://www.freebsd.org/security/advisories/FreeBSD-SA-15:18.bsdpatch.asc
Various Sources x_refsource_misc
http://rachelbythebay.com/w/2018/04/05/bangpatch/
Issue Tracking x_refsource_misc
https://bugs.debian.org/894667

Scores

CVSS v3 7.8
EPSS 0.0607
EPSS Percentile 90.9%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-200
Status published
Products (2)
freebsd/freebsd 10.1
freebsd/freebsd 10.2
Published Feb 05, 2018
Tracked Since Feb 18, 2026