RCE in Docker
CVE-2019-13139
- CVSS v3
- 8.4 High
- Public exploits
- 1 repository
- EPSS
- 0.020 · 81.6th percentile
- Published
- 2019-08-22
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.4 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.020, 81.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- hakaii59/CVE-2019-13139 (last pushed 2026-11-10)
Also mentioned in 11 other repositories (adavarski/HomeLab-k8s-DevSecOps-playground, adavarski/HomeLab-Proxmox-k8s-DevSecOps-playground, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/moby/moby/pull/38944 (Patch, Third Party Advisory)
- docs.docker.com/engine/release-notes/ (Release Notes, Vendor Advisory)
- staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/ (Exploit, Third Party Advisory)
- DSA-4521 (vendor-advisory)
- security.netapp.com/advisory/ntap-20190910-0001/
- 20190910 [SECURITY] [DSA 4521-1] docker.io security update (mailing-list)
- RHBA-2019:3092 (vendor-advisory)