cve.bz

CVE-2019-13638 OS Command Injection

7.8 highEPSS 4.5%Fix available

High (7.8). EPSS 4.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.8 high
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
4.5% (unchanged from 4.5% a week ago; 4.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-13638 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-13638?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-13638?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-13638 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:patch2.7.6
debian:debian_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8patch2.7.5-1+deb8u3DLA-1864-1
Debian9patch2.7.5-1+deb9u2DSA-4489-1
Debian10patch2.7.6-3+deb10u1DSA-4489-1
Debian12, 13, 14patch2.7.6-5DEBIAN-CVE-2019-13638
Ubuntu16.04:LTSpatch2.7.5-1ubuntu0.16.04.2UBUNTU-CVE-2019-13638 USN-4071-1
Ubuntu18.04:LTSpatch2.7.6-2ubuntu1.1UBUNTU-CVE-2019-13638 USN-4071-1
UbuntuPro:14.04:LTSpatch2.7.1-4ubuntu2.4+esm1UBUNTU-CVE-2019-13638 USN-4071-2
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepatch, patch-debuginfo0:2.7.1-12.el7_7RHSA-2019:2964
Red Hatenterprise_linux:8::baseospatch, patch-debuginfo, patch-debugsource0:2.7.6-9.el8_0RHSA-2019:2798
Red Hatrhel_aus:7.4::server, rhel_e4s:7.4::server, rhel_tus:7.4::serverpatch, patch-debuginfo0:2.7.1-11.el7_4RHSA-2019:4061
Red Hatrhel_eus:7.5::computenode, rhel_eus:7.5::serverpatch, patch-debuginfo0:2.7.1-11.el7_5RHSA-2019:3757
Red Hatrhel_eus:7.6::computenode, rhel_eus:7.6::serverpatch, patch-debuginfo0:2.7.1-11.el7_6RHSA-2019:3758
Alpinev3.7patch2.7.6-r0ALPINE-CVE-2019-13638
Alpinev3.8patch2.7.6-r4ALPINE-CVE-2019-13638
Alpinev3.9, v3.10, v3.11 and 13 morepatch2.7.6-r6ALPINE-CVE-2019-13638
Azure Linux2patch2.7.6-7AZL-6790
Azure Linux3patch2.7.6-9AZL-35106

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Enterprise Linux 6 is not affected by this vulnerability as the shipped version of patch did not carry the code that introduced this flaw.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7patch-0:2.7.1-12.el7_7Fixed 2019-10-03RHSA-2019:2964
Red Hat Enterprise Linux 7.4 Advanced Update Supportpatch-0:2.7.1-11.el7_4Fixed 2019-12-03RHSA-2019:4061
Red Hat Enterprise Linux 7.4 Telco Extended Update Supportpatch-0:2.7.1-11.el7_4Fixed 2019-12-03RHSA-2019:4061
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutionspatch-0:2.7.1-11.el7_4Fixed 2019-12-03RHSA-2019:4061
Red Hat Enterprise Linux 7.5 Extended Update Supportpatch-0:2.7.1-11.el7_5Fixed 2019-11-06RHSA-2019:3757
Red Hat Enterprise Linux 7.6 Extended Update Supportpatch-0:2.7.1-11.el7_6Fixed 2019-11-06RHSA-2019:3758
Red Hat Enterprise Linux 8patch-0:2.7.6-9.el8_0Fixed 2019-09-19RHSA-2019:2798
Red Hat Enterprise Linux 5patchOut of support scope
Red Hat Enterprise Linux 6patchNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-13638.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON