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
Published Feb 5, 2018
7.8
HIGHCVSS 3.0
EPSS 3.69%
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.
Affected products
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (26 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.69% (0.03691) | 89.35th | v5 (v2026.06.15) |
| Sep 22, 2026 | 3.69% (0.03691) | 89.22th | v5 (v2026.06.15) |
| Sep 21, 2026 | 5.53% (0.05532) | 92.52th | v5 (v2026.06.15) |
| Sep 6, 2026 | 3.69% (0.03691) | 88.97th | v5 (v2026.06.15) |
| Sep 5, 2026 | 5.53% (0.05532) | 92.36th | v5 (v2026.06.15) |
| Aug 30, 2026 | 3.69% (0.03691) | 88.91th | v5 (v2026.06.15) |
| Aug 28, 2026 | 5.53% (0.05532) | 92.31th | v5 (v2026.06.15) |
| Aug 24, 2026 | 3.69% (0.03691) | 88.85th | v5 (v2026.06.15) |
| Aug 23, 2026 | 5.53% (0.05532) | 92.28th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.78% (0.03778) | 88.51th | v5 (v2026.06.15) |
| Jun 1, 2026 | 4.11% (0.04111) | 88.79th | v4 (v2025.03.14) |
| Apr 13, 2026 | 6.08% (0.06075) | 90.76th | v4 (v2025.03.14) |
| Dec 4, 2025 | 4.11% (0.04111) | 88.18th | v4 (v2025.03.14) |
| Mar 23, 2025 | 2.92% (0.02921) | 83.84th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.80% (0.01801) | 81.58th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.34% (0.01345) | 86.69th | v3 (v2023.03.01) |
| Jun 22, 2024 | 1.34% (0.01345) | 86.17th | v3 (v2023.03.01) |
| Feb 21, 2024 | 0.95% (0.00952) | 82.71th | v3 (v2023.03.01) |
| Jan 16, 2024 | 0.80% (0.00795) | 79.67th | v3 (v2023.03.01) |
| Dec 16, 2023 | 0.56% (0.00561) | 75.18th | v3 (v2023.03.01) |
| Jun 29, 2023 | 0.40% (0.00396) | 69.78th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.34% (0.00342) | 66.93th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.32% (0.01319) | 71.27th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.32% (0.01319) | 71.23th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.32% (0.01319) | 69.22th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.32% (0.01319) | 44.98th | v2 (v2022.01.01) |
References (6)
- http://rachelbythebay.com/w/2018/04/05/bangpatch/ x_refsource_MISC
- http://www.securityfocus.com/bid/76236 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1033188 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://bugs.debian.org/894667 x_refsource_MISC
- https://ftp.openbsd.org/pub/OpenBSD/patches/5.7/common/013_patch.patch.sig x_refsource_MISC
- https://www.freebsd.org/security/advisories/FreeBSD-SA-15:18.bsdpatch.asc vendor-advisoryx_refsource_FREEBSDVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| http://rachelbythebay.com/w/2018/04/05/bangpatch/ | x_refsource_MISC | |
| http://www.securityfocus.com/bid/76236 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| http://www.securitytracker.com/id/1033188 | vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry | |
| https://bugs.debian.org/894667 | x_refsource_MISC | |
| https://ftp.openbsd.org/pub/OpenBSD/patches/5.7/common/013_patch.patch.sig | x_refsource_MISC | |
| https://www.freebsd.org/security/advisories/FreeBSD-SA-15:18.bsdpatch.asc | vendor-advisoryx_refsource_FREEBSDVendor Advisory |
Change history (0)
No recorded changes yet.