# CVE-2019-13638: patch: The patch program applies diff files to originals

CVE-2019-13638 is fixed in patch on 1 platform, first by patch 2.7.6-2ubuntu1.1, released August 15, 2019. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2019-13638
- Priority: High
- CVSS: 7.8 (Important)
- EPSS: 0.0449
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 21, 2019

## Description

The patch program applies diff files to originals. The diff command is used to compare an original to a changed file. Diff lists the changes made to the file. A person who has the original file can then use the patch command with the diff file to add the changes to their original file (patching the file).  Security Fix(es):  * patch: do_ed_script in pch.c does not block strings beginning with a ! character (CVE-2018-20969)  * patch: OS shell command injection when processing crafted patch files (CVE-2019-13638)  For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | patch RHEL 8 | 0:2.7.6-9.el8_0 | [RHSA-2019:2798](https://patchblox.com/security/data/fix/linux/rhsa-2019-2798.md) | Sep 19, 2019 |
| Linux | patch Ubuntu 18.04.6 LTS (bionic) | 2.7.6-2ubuntu1.1 | [patch 2.7.6-2ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-patch-2.7.6-2ubuntu1.1.md) | Aug 15, 2019 |
| Linux | patch ol 8 | 0:2.7.6-9.el8_0 | [ELSA-2019-2798](https://patchblox.com/security/data/fix/linux/elsa-2019-2798.md) | Sep 19, 2019 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
