CVE-2019-13638: Command Injection

Published Jul 26, 2019
·
Updated

A vulnerability was found in GNU patch through 2.7.6 is vulnerable to OS shell command injection that can be exploited by opening a crafted patch file that contains an ed style diff payload with shell metacharacters. The ed editor does not need to be present on the vulnerable system. This is different from CVE-2018-1000156.

Reference: https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0

Affected Software

5 affected componentsFixes available
GNU patch=2.7.6
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Debian Debian Linux=10.0
debian/patch
2.7.6-72.8-2

Event History

Jul 26, 2019
CVE Published
via MITRE·12:22 PM
Data Sourced
via MITRE·12:22 PM
Description
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 29, 2019
Data Sourced
via Red Hat·08:24 AM
DescriptionSeverityAffected Software
Feb 20, 2026
Data Sourced
via Debian·11:02 PM
DescriptionAffected Software
Data Sourced
via Ubuntu·11:03 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·11:03 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2019-13638?

CVE-2019-13638 is a vulnerability in the GNU patch tool that allows for OS shell command injection.

2

How severe is CVE-2019-13638?

CVE-2019-13638 has a severity score of 7.8, which is considered critical.

3

What software is affected by CVE-2019-13638?

The GNU patch tool versions 2.7.6 and below are affected by CVE-2019-13638.

4

How can CVE-2019-13638 be exploited?

CVE-2019-13638 can be exploited by opening a crafted patch file that contains an ed style diff payload with shell metacharacters.

5

Are there any patches available for CVE-2019-13638?

Yes, patches are available to address the vulnerability. Please refer to the official references for remediation information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203