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)

EPSS: 0.020 (79.3th percentile) — read the EPSS interpretation.

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.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

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.