CVE-2019-13139
No exploitation reported by the sources we read.
- Published2019-08-22
- Fixed in18.09.4
- WeaknessCWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2019-08-2220:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 18.9 | < 18.09.4 | 18.09.4 | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- dockerRed Hat:rhel_extras_other:7all versions · fixed in 2:1.13.1-104.git4ef4b30.el7and 8 other packages
- docker.ioDebian:14all versions · fixed in 18.09.1+dfsg1-8
- docker.ioDebian:13all versions · fixed in 18.09.1+dfsg1-8
- docker.ioDebian:12all versions · fixed in 18.09.1+dfsg1-8
- docker.ioDebian:10all versions · fixed in 18.09.1+dfsg1-7.1+deb10u1
- py3-dockerWolfiall versions · fixed in 0and 4 other packages
- py3-dockerChainguardall versions · fixed in 0and 4 other packages
Vendor advisories
docker: command injection due to a missing validation of the git ref command
docker as a component of Red Hat OpenShift Container Platform 3.6 · docker-client as a component of Red Hat OpenShift Container Platform 3.6 · docker-common as a component of Red Hat OpenShift Container Platform 3.6 · +17 more
Red Hat Bug Fix Advisory: docker bug fix update
Fix
- Update Docker to 18.09.4
- Vendor fix Red Hat Product Security RHBA-2019:3092 · 28 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- No fix planned, says the vendor Red Hat Product Security CVE-2019-13139 · 20 productsOut of support scope
Advisories and patches
- docs.docker.comRelease Notes · Vendor Advisory
- github.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-10
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.08.4read 2026-10-23
- NVDCVSS 2.04.6read 2026-10-23
- NVDweakness (CWE)CWE-78read 2026-10-23
- FIRST EPSSEPSS score2.0 %2026-11-09
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- CGA-238v-fmgw-33xrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-66vw-2g7f-jc8psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6j27-98qr-hw46same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6pwx-x625-rc86same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gpgq-vwc2-37q5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gx5w-v42c-mj6gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hj5p-44c3-hwcfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-ph3w-q88m-9hfvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-vgvf-m89h-2j75same flawChainguard · CC-BY-NC-ND-4.0
- CGA-vvgh-wvqh-2q7wsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2019-4672same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-33j8-c2xf-8225same flawGitHub Advisory Database · CC-BY-4.0
- DSA-4521-1advisory covering several CVEsDebian · LicenseRef-unstated
- RHBA-2019:3092advisory covering several CVEsRed Hat · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2019-08-22
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-33j8-c2xf-8225
Frequently asked questions
What is CVE-2019-13139?
Is CVE-2019-13139 actively exploited?
What is the CVSS score for CVE-2019-13139?
Running docker? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-33j8-c2xf-8225
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0