{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-13139","id":"CVE-2019-13139","title":"In Docker before 18.09.4, an attacker who is capable of supplying or manipulating the build path for the \"docker buil…","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\" comman","descriptionLong":"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-22T19:47:43.000Z","updated":"2026-10-24T10:49:48.129007806Z","reserved":"2019-07-01T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.0","score":8.4,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.0","score":8.4,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.0","score":8.4,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[],"cwes":["CWE-78"],"aliases":[],"references":[{"url":"https://github.com/moby/moby/pull/38944","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://docs.docker.com/engine/release-notes/#18094","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","advisory"]},{"url":"https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://www.debian.org/security/2019/dsa-4521","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20190910-0001/","tags":["x_refsource_CONFIRM","x_transferred","advisory"]},{"url":"https://seclists.org/bugtraq/2019/Sep/21","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"https://access.redhat.com/errata/RHBA-2019:3092","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02041,"epssPercentile":0.81571,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-13139","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-13139","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-13139","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-13139","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["docker"],"critical":[],"attention":null}