{"id":"CVE-2019-13139","url":"https://www.cyber-defence.io/tools/cve/CVE-2019-13139","generatedAt":"2026-10-29T00:06:22.152Z","title":"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.","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.","published":"2019-08-22T20:15:12.000Z","lastModified":"2026-06-17T02:16:09.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.0","score":8.4,"severity":"HIGH","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-78"],"affected":["docker/docker"],"epss":{"score":0.02041,"percentile":0.81049,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (2.04%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://access.redhat.com/errata/RHBA-2019:3092","source":"cve@mitre.org"},{"url":"https://docs.docker.com/engine/release-notes/#18094","tags":["Release Notes","Vendor Advisory"],"source":"cve@mitre.org"},{"url":"https://github.com/moby/moby/pull/38944","tags":["Patch","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://seclists.org/bugtraq/2019/Sep/21","source":"cve@mitre.org"},{"url":"https://security.netapp.com/advisory/ntap-20190910-0001/","source":"cve@mitre.org"},{"url":"https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.debian.org/security/2019/dsa-4521","source":"cve@mitre.org"},{"url":"https://access.redhat.com/errata/RHBA-2019:3092","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://docs.docker.com/engine/release-notes/#18094","tags":["Release Notes","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/moby/moby/pull/38944","tags":["Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://seclists.org/bugtraq/2019/Sep/21","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20190910-0001/","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.debian.org/security/2019/dsa-4521","source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-13139","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}