CVE-2019-13139
publisheddocker: command injection due to a missing validation of the git ref command
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2DOCKER-2021-003 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2NITRO-ENCLAVES-2021-003 | Fixed | Not stated | Amazon Linux assessment |
| Debian | buster | docker.io | Advisory build | 18.09.1+dfsg1-7.1+deb10u1 | DSA-4521-1 |
| Oracle Linux | 7 | docker-engineaarch64 | Advisory build | 0:18.09.8.ol-1.0.4.el7 | ELSA-2019-4813 |
| Amazon Linux | AL2 | dockeraarch64 | Listed in advisory | Not stated | ALAS2DOCKER-2021-003 |
| Oracle Linux | 7 | docker-enginex86_64 | Advisory build | 0:18.09.8.ol-1.0.4.el7 | ELSA-2019-4813 |
| Amazon Linux | AL2 | dockeraarch64 | Listed in advisory | Not stated | ALAS2NITRO-ENCLAVES-2021-003 |
Show 4 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | dockersrc | Listed in advisory | Not stated | ALAS2DOCKER-2021-003 |
| Amazon Linux | AL2 | dockersrc | Listed in advisory | Not stated | ALAS2NITRO-ENCLAVES-2021-003 |
| Amazon Linux | AL2 | dockerx86_64 | Listed in advisory | Not stated | ALAS2DOCKER-2021-003 |
| Amazon Linux | AL2 | dockerx86_64 | Listed in advisory | Not stated | ALAS2NITRO-ENCLAVES-2021-003 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
7- RHBA-2019:3092 https://access.redhat.com/errata/RHBA-2019:3092
- https://docs.docker.com/engine/release-notes/#18094
- https://github.com/moby/moby/pull/38944
- 20190910 [SECURITY] [DSA 4521-1] docker.io security update 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/
- DSA-4521 https://www.debian.org/security/2019/dsa-4521
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 59740ecaa4240a8b4131ca95adef3f6d2038f0c34a8f10e7fe4b69b9843a2536
- Ingested
- 23 Sep 2026, 07:45:50 UTC
- Source record
- Official CVE record