Skip to content
Fencer Vulns
high 8.4

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

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 more
    affected: 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 more
    fixed: 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

Sources

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.