CVE-2019-13139 json
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 ab…
published 2019-08-22 7 y ago modified 2026-06-17 4 mo ago also EUVD-2019-4672
- cvss
- 8.4
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.0%
- EPSS 2.0% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- docker docker 18.09.4
- docker.io Debian 14, Debian 13, Debian 12 18.09.1+dfsg1-8
debian advisories DEBIAN-CVE-2019-13139
- docker RHEL 7 EXTRAS_OTHER 2:1.13.1-104.git4ef4b30.el7
- docker-client RHEL 7 EXTRAS_OTHER 2:1.13.1-104.git4ef4b30.el7
- docker-common RHEL 7 EXTRAS_OTHER 2:1.13.1-104.git4ef4b30.el7
- docker-logrotate RHEL 7 EXTRAS_OTHER 2:1.13.1-104.git4ef4b30.el7
- docker-lvm-plugin RHEL 7 EXTRAS_OTHER 2:1.13.1-104.git4ef4b30.el7
- docker-v1.10-migrator RHEL 7 EXTRAS_OTHER 2:1.13.1-104.git4ef4b30.el7
- docker-novolume-plugin RHEL 7 EXTRAS_OTHER 2:1.13.1-104.git4ef4b30.el7
- docker-rhel-push-plugin RHEL 7 EXTRAS_OTHER 2:1.13.1-104.git4ef4b30.el7
red hat advisories RHBA-2019:3092
- github.com/moby/moby#38944 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-13139 updated cvss 6.7
docker: command injection due to a missing validation of the git ref command
-
Red Hat OpenShift Container Platform 3.6 docker, docker-client, docker-common, docker-logrotate, docker-unit-test, docker-lvm-plugin, +3 more Red Hat OpenShift Container Platform 3.7 docker, docker-client, docker-common, docker-logrotate, docker-unit-test, docker-lvm-plugin, +3 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 Extras docker 1.13.1-104.git4ef4b30.el7, docker-client 1.13.1-104.git4ef4b30.el7, docker-common 1.13.1-104.git4ef4b30.el7, docker-logrotate 1.13.1-104.git4ef4b30.el7, docker-lvm-plugin 1.13.1-104.git4ef4b30.el7, docker-v1.10-migrator 1.13.1-104.git4ef4b30.el7, +2 morefixed: vendor fix RHBA-2019:3092
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.04% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- staaldraad.github.io https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.4 | CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
- Technology feeds
References
-
github.com
/moby/moby/pull/38944
patch, third-party-advisory
-
staaldraad.github.io
/post/2019-07-16-cve-2019-13139-docker-build/
exploit, third-party-advisory
-
debian.org
/security/2019/dsa-4521
vendor-advisory
-
access.redhat.com
/errata/RHBA-2019:3092
vendor-advisory
-
docs.docker.com
/engine/release-notes/#18094
release-notes, vendor-advisory
- security.netapp.com /advisory/ntap-20190910-0001/
-
seclists.org
/bugtraq/2019/Sep/21
mailing-list
Sources
- CVE List CVE-2019-13139
- NVD CVE-2019-13139
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.