High severity · published Feb 5, 2018
CVE-2015-1418
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…
7.8
CVSS
3.7%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)3.7% · higher than 90% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FR
Freebsd · Freebsd
10.1; 10.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-1418
CVE.org
https://www.cve.org/CVERecord?id=CVE-2015-1418
rachelbythebay.com
http://rachelbythebay.com/w/2018/04/05/bangpatch/
Third Party Advisory
http://www.securityfocus.com/bid/76236
Third Party Advisory
http://www.securitytracker.com/id/1033188
bugs.debian.org
https://bugs.debian.org/894667
ftp.openbsd.org
https://ftp.openbsd.org/pub/OpenBSD/patches/5.7/common/013_patch.patch.sig
Vendor Advisory
https://www.freebsd.org/security/advisories/FreeBSD-SA-15:18.bsdpatch.asc
More from Freebsd
10.0
CVE-2024-43102
umtx Kernel panic or Use-After-Free
10.0
CVE-2018-17160
In FreeBSD before 11.2-STABLE(r341486) and 11.2-RELEASE-p6, insufficient bounds checking in one of the device models provided by bhyve can permit a guest operating system to…
9.8
CVE-2026-101306
Multiple jail filesystem root escapes
9.8
CVE-2026-58082
Stack based buffer overflow in iconv(3)
9.8
CVE-2026-58081
Heap based buffer overflow in iconv(3)
