RCE in Docker
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. 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.
EPSS exploit prediction
EPSS: 0.020 (80.5th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 81st percentile — 80.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.020 · newest: 0.020 · change: +0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
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)
- www.debian.org/security/2019/dsa-4521 (vendor-advisory)
- security.netapp.com/advisory/ntap-20190910-0001/
- seclists.org/bugtraq/2019/Sep/21 (mailing-list)
- access.redhat.com/errata/RHBA-2019:3092 (vendor-advisory)
Frequently asked questions
- What is CVE-2019-13139?
- CVE-2019-13139 is a high-severity vulnerability in Docker, classified under OS Command Injection. CVSS score: 8.4/10. Published 2019-08-22.
- How severe is CVE-2019-13139?
- High severity. CVSS v3 base score is 8.4 out of 10.
- Is CVE-2019-13139 known to be exploited?
- 11 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.