CVE-2019-13139
In Docker before 18.09.4, an attacker who is capable of supplying or manipulating the build path...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.4
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.
- Record
CVE-2019-13139- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-78
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2019-13139- Updated
- 2026-11-02
EUVDEUVD-2019-4672 No score
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.
- Record
EUVD-2019-4672- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-33j8-c2xf-8225
8.4
In Docker before 18.09.4, an attacker who is capable of supplying or manipulating the build path...
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.
- Record
GHSA-33j8-c2xf-8225- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-78
- Updated
- 2026-11-02
OSV
8.4
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.
- Record
CVE-2019-13139- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2019-13139
8.4
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.
- Record
DEBIAN-CVE-2019-13139- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHBA-2019:3092
6.7
Red Hat Bug Fix Advisory: docker bug fix update
- Record
RHBA-2019:3092- CVSS 3.0
- 6.7 Medium
CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
docker.ioDebian:12 |
before 18.09.1+dfsg1-8 | 18.09.1+dfsg1-8 |
docker.ioDebian:13 |
before 18.09.1+dfsg1-8 | 18.09.1+dfsg1-8 |
docker.ioDebian:14 |
before 18.09.1+dfsg1-8 | 18.09.1+dfsg1-8 |
docker.ioDebian:10 |
before 18.09.1+dfsg1-7.1+deb10u1, plus listed versions 18.09.1+dfsg1-7.1 |
18.09.1+dfsg1-7.1+deb10u1 |
dockerRed Hat:rhel_extras_other:7 |
before 2:1.13.1-104.git4ef4b30.el7 | 2:1.13.1-104.git4ef4b30.el7 |
docker-clientRed Hat:rhel_extras_other:7 |
before 2:1.13.1-104.git4ef4b30.el7 | 2:1.13.1-104.git4ef4b30.el7 |
docker-commonRed Hat:rhel_extras_other:7 |
before 2:1.13.1-104.git4ef4b30.el7 | 2:1.13.1-104.git4ef4b30.el7 |
docker-debuginfoRed Hat:rhel_extras_other:7 |
before 2:1.13.1-104.git4ef4b30.el7 | 2:1.13.1-104.git4ef4b30.el7 |
docker-logrotateRed Hat:rhel_extras_other:7 |
before 2:1.13.1-104.git4ef4b30.el7 | 2:1.13.1-104.git4ef4b30.el7 |
docker-lvm-pluginRed Hat:rhel_extras_other:7 |
before 2:1.13.1-104.git4ef4b30.el7 | 2:1.13.1-104.git4ef4b30.el7 |
docker-novolume-pluginRed Hat:rhel_extras_other:7 |
before 2:1.13.1-104.git4ef4b30.el7 | 2:1.13.1-104.git4ef4b30.el7 |
docker-rhel-push-pluginRed Hat:rhel_extras_other:7 |
before 2:1.13.1-104.git4ef4b30.el7 | 2:1.13.1-104.git4ef4b30.el7 |
docker-v1.10-migratorRed Hat:rhel_extras_other:7 |
before 2:1.13.1-104.git4ef4b30.el7 | 2:1.13.1-104.git4ef4b30.el7 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2019-13139 is a high vulnerability (CVSS 8.4) in Docker, published August 22, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.04%, the 81st percentile. Fixed in docker.io 18.09.1+dfsg1-8.
References
github.com/moby/moby/pull/38944
docs.docker.com/engine/release-notes
staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build
debian.org/security/2019/dsa-4521
security.netapp.com/advisory/ntap-20190910-0001
seclists.org/bugtraq/2019/Sep/21
Show 9 moreShow less
access.redhat.com/errata/RHBA-2019:3092
nvd.nist.gov/vuln/detail/CVE-2019-13139
github.com/advisories/GHSA-33j8-c2xf-8225
security-tracker.debian.org/tracker/CVE-2019-13139
bugzilla.redhat.com/show_bug.cgi?id=1739315
security.access.redhat.com/data/csaf/v2/advisories/2019/rhba-2019_3092.json
access.redhat.com/security/cve/CVE-2019-13139
bugzilla.redhat.com/show_bug.cgi?id=1732627
cve.org/CVERecord?id=CVE-2019-13139