High severity · published Aug 22, 2019
CVE-2019-13139
In Docker before 18.09.4, an attacker who is capable of supplying or manipulating the build path for the "docker build" command would be able to gain command execution
8.4
CVSS
2%
EPSS
No
On KEV
Description
In Docker before 18.09.4, an attacker who is capable of supplying or manipulating the build path for the "docker build" command would be able to gain command execution. An issue exists in the way "docker build" processes remote git URLs, and results in command injection into the underlying "git clone" command, leading to code execution in the context of the user executing the "docker build" command. This occurs because git ref can be misinterpreted as a flag.
CVSS vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.0% · higher than 81% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DO
Docker · Docker
before 18.09.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-13139
CVE.org
https://www.cve.org/CVERecord?id=CVE-2019-13139
access.redhat.com
https://access.redhat.com/errata/RHBA-2019:3092
Release Notes
https://docs.docker.com/engine/release-notes/#18094
Patch
https://github.com/moby/moby/pull/38944
seclists.org
https://seclists.org/bugtraq/2019/Sep/21
security.netapp.com
https://security.netapp.com/advisory/ntap-20190910-0001/
Exploit
https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/
More from Docker
7.8
CVE-2019-15752
Docker Desktop Community Edition Privilege Escalation Vulnerability
9.8
CVE-2014-0048
An issue was found in Docker before 1.6.0
9.8
CVE-2019-14271
In Docker 19.03.x before 19.03.1 linked against the GNU C Library (aka glibc), code injection can occur when the nsswitch facility dynamically loads a library inside a chroot that…
8.8
CVE-2020-14300
The docker packages version docker-1.13.1-108.git4ef4b30.el7 as released for Red Hat Enterprise Linux 7 Extras via RHBA-2020:0053 (https://access.redhat.com/errata/RHBA-2020:0053)…
8.8
CVE-2020-14298
The version of docker as released for Red Hat Enterprise Linux 7 Extras via RHBA-2020:0053 advisory included an incorrect version of runc missing the fix for CVE-2019-5736, which…
