patch: do_ed_script in pch.c does not block strings beginning with a ! character
Published Aug 16, 2019
7.8
HIGHCVSS 3.0
EPSS 2.68%
Description
do_ed_script in pch.c in GNU patch through 2.7.6 does not block strings beginning with a ! character. NOTE: this is the same commit as for CVE-2019-13638, but the ! syntax is specific to ed, and is unrelated to a shell metacharacter.
Affected products
No data.
No data.
Red Hat Enterprise Linux 7
patch-0:2.7.1-12.el7_7
Fixed · RHSA-2019:2964
Red Hat Enterprise Linux 7.4 Advanced Update Support
patch-0:2.7.1-11.el7_4
Fixed · RHSA-2019:4061
Red Hat Enterprise Linux 7.4 Telco Extended Update Support
patch-0:2.7.1-11.el7_4
Fixed · RHSA-2019:4061
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions
patch-0:2.7.1-11.el7_4
Fixed · RHSA-2019:4061
Red Hat Enterprise Linux 7.5 Extended Update Support
patch-0:2.7.1-11.el7_5
Fixed · RHSA-2019:3757
Red Hat Enterprise Linux 7.6 Extended Update Support
patch-0:2.7.1-11.el7_6
Fixed · RHSA-2019:3758
Red Hat Enterprise Linux 8
patch-0:2.7.6-9.el8_0
Fixed · RHSA-2019:2798
Red Hat Enterprise Linux 5
patch
Out of support scope
Red Hat Enterprise Linux 6
patch
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | patch-0:2.7.1-12.el7_7 | Fixed | RHSA-2019:2964 |
| Red Hat Enterprise Linux 7.4 Advanced Update Support | patch-0:2.7.1-11.el7_4 | Fixed | RHSA-2019:4061 |
| Red Hat Enterprise Linux 7.4 Telco Extended Update Support | patch-0:2.7.1-11.el7_4 | Fixed | RHSA-2019:4061 |
| Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions | patch-0:2.7.1-11.el7_4 | Fixed | RHSA-2019:4061 |
| Red Hat Enterprise Linux 7.5 Extended Update Support | patch-0:2.7.1-11.el7_5 | Fixed | RHSA-2019:3757 |
| Red Hat Enterprise Linux 7.6 Extended Update Support | patch-0:2.7.1-11.el7_6 | Fixed | RHSA-2019:3758 |
| Red Hat Enterprise Linux 8 | patch-0:2.7.6-9.el8_0 | Fixed | RHSA-2019:2798 |
| Red Hat Enterprise Linux 5 | patch | Out of support scope | n/a |
| Red Hat Enterprise Linux 6 | patch | Not affected | n/a |
No package ranges for this CVE.
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
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/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
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (20 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.68% (0.02684) | 85.31th | v5 (v2026.06.15) |
| Sep 22, 2026 | 2.68% (0.02684) | 85.18th | v5 (v2026.06.15) |
| Sep 21, 2026 | 4.83% (0.04835) | 91.61th | v5 (v2026.06.15) |
| Sep 6, 2026 | 2.68% (0.02684) | 84.86th | v5 (v2026.06.15) |
| Sep 5, 2026 | 4.83% (0.04835) | 91.43th | v5 (v2026.06.15) |
| Aug 30, 2026 | 2.68% (0.02684) | 84.77th | v5 (v2026.06.15) |
| Aug 28, 2026 | 4.83% (0.04835) | 91.38th | v5 (v2026.06.15) |
| Aug 24, 2026 | 2.68% (0.02684) | 84.69th | v5 (v2026.06.15) |
| Aug 23, 2026 | 4.83% (0.04835) | 91.35th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.71% (0.02706) | 83.97th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.78% (0.00784) | 71.52th | v4 (v2025.03.14) |
| Mar 29, 2025 | 2.21% (0.02206) | 74.02th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.78% (0.00784) | 72.09th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.36% (0.00358) | 73.00th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.30% (0.00300) | 68.71th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.30% (0.00300) | 64.69th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.54% (0.01537) | 74.52th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.54% (0.01537) | 51.33th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.07% (0.02069) | 50.36th | v5 (v2026.06.15) |
| Apr 14, 2021 | 2.07% (0.02069) | 0.00th | v1 |
References (13)
- http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html x_refsource_MISCThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2019:2798 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2019:2964 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2019:3757 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2019:3758 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2019:4061 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2018-20969 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1746672 Issue Tracking
- https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0 x_refsource_MISCPatchVendor Advisory
- https://github.com/irsl/gnu-patch-vulnerabilities x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2018-20969
- https://seclists.org/bugtraq/2019/Aug/29 mailing-listx_refsource_BUGTRAQExploitMailing ListPatchThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-20969
Change history (0)
No recorded changes yet.