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 "doc...
HighCVSS 8.4
EPSS 2.0%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- DockerDebian
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.
Upgrade path
4 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/docker.io(Debian 12) | < 18.09.1+dfsg1-8 | 18.09.1+dfsg1-8 | Fixed |
| debian/docker.io(Debian 13) | < 18.09.1+dfsg1-8 | 18.09.1+dfsg1-8 | Fixed |
| debian/docker.io(Debian 14) | < 18.09.1+dfsg1-8 | 18.09.1+dfsg1-8 | Fixed |
| docker github.com/docker/docker | < 18.09.4 | 18.09.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/docker.io(Debian:12) | < 18.09.1+dfsg1-8 | 18.09.1+dfsg1-8 |
| debian/docker.io(Debian:13) | < 18.09.1+dfsg1-8 | 18.09.1+dfsg1-8 |
| debian/docker.io(Debian:14) | < 18.09.1+dfsg1-8 | 18.09.1+dfsg1-8 |
| docker github.com/docker/docker | < 18.09.4 | 18.09.4 |
References
- Debian Security Tracker CVE-2019-13139 vendor-advisory
- RHBA-2019:3092 vendor-advisory
- docs.docker.com release-notes vendor-advisory
- github.com patch third-party-advisory
- 20190910 [SECURITY] [DSA 4521-1] docker.io security update mailing-list
- security.netapp.com
- staaldraad.github.io exploit third-party-advisory
- DSA-4521 vendor-advisory
- bugs.debian.org issue-tracking