Command Injection in Docker Engine - CVE-2019-13139
Published: September 10, 2019
Vulnerability identifier: #VU20954
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-13139
CWE-ID: CWE-77
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a local attacker to inject and execute arbitrary commands on the target system.
The vulnerability exists due to the affected software misinterprets the "git ref" command as a flag. A local authenticated user who is able to execute the "docker build" command and has control over the build path can inject and execute arbitrary commands on the target system.
Affected software
Docker Engine
Amazon Linux AMI
docker.io (Debian package)
Amazon Linux AMI
docker.io (Debian package)
How to mitigate CVE-2019-13139
Install updates from vendor's website.
Docker Engine - update to 18.09.4
docker.io (Debian package) - update to 18.09.1+dfsg1-7.1+deb10u1
docker.io (Debian package) - update to 18.09.1+dfsg1-7.1+deb10u1