CVE-2019-13139

high
New! CVE Severity Now Using CVSS v3

The calculated severity for CVEs has been updated to use CVSS v3 by default. CVEs that do not have a CVSS v3 score will fall back CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

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.

References

https://access.redhat.com/errata/RHBA-2019:3092

https://docs.docker.com/engine/release-notes/#18094

https://github.com/moby/moby/pull/38944

https://seclists.org/bugtraq/2019/Sep/21

https://security.netapp.com/advisory/ntap-20190910-0001/

https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/

https://www.debian.org/security/2019/dsa-4521

Details

Source: MITRE

Published: 2019-08-22

Updated: 2020-08-24

Type: CWE-78

Risk Information

CVSS v2

Base Score: 4.6

Vector: AV:L/AC:L/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 3.9

Severity: MEDIUM

CVSS v3

Base Score: 8.4

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Impact Score: 5.9

Exploitability Score: 2.5

Severity: HIGH

Vulnerable Software

Configuration 1

OR

cpe:2.3:a:docker:docker:*:*:*:*:enterprise:*:*:*

Tenable Plugins

View all (7 total)

IDNameProductFamilySeverity
154519NewStart CGSL CORE 5.05 / MAIN 5.05 : docker-ce Multiple Vulnerabilities (NS-SA-2021-0138)NessusNewStart CGSL Local Security Checks
high
143962NewStart CGSL CORE 5.04 / MAIN 5.04 : docker-ce Multiple Vulnerabilities (NS-SA-2020-0082)NessusNewStart CGSL Local Security Checks
high
136552Photon OS 1.0: Docker PHSA-2020-1.0-0292NessusPhotonOS Local Security Checks
high
136345Photon OS 3.0: Docker PHSA-2020-3.0-0085NessusPhotonOS Local Security Checks
high
136331Photon OS 2.0: Docker PHSA-2020-2.0-0235NessusPhotonOS Local Security Checks
high
130609Amazon Linux AMI : docker (ALAS-2019-1316)NessusAmazon Linux Local Security Checks
high
128622Debian DSA-4521-1 : docker.io - security updateNessusDebian Local Security Checks
critical