CVEfocus › CVE database › CVE-2019-13638

CVE-2019-13638

CVSS 7.8 HighEPSS 4.5% (higher than 92% of CVEs)Published 2019-07-26Updated 2024-08-04Assigner: mitre

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.

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

25Fixed
1Fix pending
1Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04patchFixed2.7.6-2ubuntu1.1UBUNTU-CVE-2019-13638
Ubuntu 16.04patchFixed2.7.5-1ubuntu0.16.04.2UBUNTU-CVE-2019-13638
Ubuntu 14.04patchFix pending2.7.1-4ubuntu2.4+esm1 (Ubuntu Pro)UBUNTU-CVE-2019-13638
Debian 14patchFixed2.7.6-5DEBIAN-CVE-2019-13638
Debian 13patchFixed2.7.6-5DEBIAN-CVE-2019-13638
Debian 12patchFixed2.7.6-5DEBIAN-CVE-2019-13638
Red Hat Enterprise Linux 8patchFixed0:2.7.6-9.el8_0RHSA-2019:2798
Red Hat Enterprise Linux 7patchFixed0:2.7.1-12.el7_7RHSA-2019:2964
Red Hat Enterprise Linux 6patchNot affected
Red Hat Enterprise Linux 5patchWill not fix
Out of support scope
Alpine Linux 3.24patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.23patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.22patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.21patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.20patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.19patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.18patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.17patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.16patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.15patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.14patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.13patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.12patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.11patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.10patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.9patchFixed2.7.6-r6ALPINE-CVE-2019-13638
Alpine Linux 3.8patchFixed2.7.6-r4ALPINE-CVE-2019-13638
Alpine Linux 3.7patchFixed2.7.6-r0ALPINE-CVE-2019-13638

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.