Skip to main content
No exploitation reportedFix available

CVE-2019-13139

No exploitation reported by the sources we read.

  • Published2019-08-22
  • Fixed in18.09.4
  • WeaknessCWE-78

Am I 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
  1. 2019-08-2220:15CVE publishedNVD

Versions per branch

NVD
Docker
BranchAffectedFixed in
18.9< 18.09.418.09.4

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

  • CVE-2019-13139 Red Hat Product Security28 products fixed · 20 known affected

    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

  • RHBA-2019:3092 Red Hat Product Security28 products fixed

    Red Hat Bug Fix Advisory: docker bug fix update

Full record on NVD

Fix

  1. Update Docker to 18.09.4
  2. 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
  3. No fix planned, says the vendor Red Hat Product Security CVE-2019-13139 · 20 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2019-13139 actively exploited?

Active exploitation of CVE-2019-13139 has not been confirmed. Its EPSS score was 2.0% on 2026-11-09, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2019-13139?

CVE-2019-13139 has a CVSS v3 base score of 8.4 (HIGH severity), with vector string CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record