{"id":"CVE-2019-13139","aliases":["DEBIAN-CVE-2019-13139","DSA-4521-1","EUVD-2019-4672","GHSA-33j8-c2xf-8225","RHBA-2019:3092"],"status":"published","title":"In Docker before 18.09.4, an attacker who is capable of supplying or manipulating the build path...","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.","severity":{"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","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.02041,"percentile":0.8141,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-78"],"published":"2019-08-22T19:47:43Z","modified":"2026-10-24T10:49:48Z","exploits":[{"source":"pocgithub","id":"hakaii59/CVE-2019-13139","title":"hakaii59/CVE-2019-13139","date":"2026-11-10","url":"https://github.com/hakaii59/CVE-2019-13139"}],"fixes":[{"ecosystem":"Debian:12","package":"docker.io","fixed_in":["18.09.1+dfsg1-8"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"docker.io","fixed_in":["18.09.1+dfsg1-8"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"docker.io","fixed_in":["18.09.1+dfsg1-8"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_extras_other:7","package":"docker","fixed_in":["2:1.13.1-104.git4ef4b30.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-client","fixed_in":["2:1.13.1-104.git4ef4b30.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-common","fixed_in":["2:1.13.1-104.git4ef4b30.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-debuginfo","fixed_in":["2:1.13.1-104.git4ef4b30.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-logrotate","fixed_in":["2:1.13.1-104.git4ef4b30.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-lvm-plugin","fixed_in":["2:1.13.1-104.git4ef4b30.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-novolume-plugin","fixed_in":["2:1.13.1-104.git4ef4b30.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-rhel-push-plugin","fixed_in":["2:1.13.1-104.git4ef4b30.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-v1.10-migrator","fixed_in":["2:1.13.1-104.git4ef4b30.el7"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"docker.io","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"18.09.1+dfsg1-8"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"docker.io","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"18.09.1+dfsg1-8"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"docker.io","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"18.09.1+dfsg1-8"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"docker.io","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"18.09.1+dfsg1-7.1+deb10u1"}]}],"versions":["18.09.1+dfsg1-7.1"],"bundled":3},{"source":"osv","ecosystem":"Red Hat:rhel_extras_other:7","package":"docker","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.13.1-104.git4ef4b30.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.13.1-104.git4ef4b30.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.13.1-104.git4ef4b30.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.13.1-104.git4ef4b30.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-logrotate","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.13.1-104.git4ef4b30.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-lvm-plugin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.13.1-104.git4ef4b30.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-novolume-plugin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.13.1-104.git4ef4b30.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-rhel-push-plugin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.13.1-104.git4ef4b30.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_extras_other:7","package":"docker-v1.10-migrator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.13.1-104.git4ef4b30.el7"}]}]}],"products":[{"vendor":"docker","product":"docker"}],"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"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-13139","tags":["advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20190910-0001"},{"url":"https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build"},{"url":"https://github.com/advisories/GHSA-33j8-c2xf-8225"},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-13139","tags":["advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1739315","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2019/rhba-2019_3092.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2019-13139","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1732627","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-13139","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2019-13139","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.","status":"published","published":"2019-08-22T19:47:43Z","modified":"2024-08-04T23:41:10.517Z","updated_at":"2026-11-02T14:20:24.025419Z"}],"euvd":[{"id":"EUVD-2019-4672","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.","status":"published","published":"2019-08-22T19:47:43Z","modified":"2024-08-04T23:41:10Z","updated_at":"2026-11-03T02:40:43.860719Z"}],"ghsa":[{"id":"GHSA-33j8-c2xf-8225","title":"In Docker before 18.09.4, an attacker who is capable of supplying or manipulating the build path...","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.","status":"published","published":"2022-05-24T16:54:33Z","modified":"2024-04-11T21:19:02Z","cvss":[{"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","level":"high"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:57:09.764736Z"}],"nvd":[{"id":"CVE-2019-13139","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.","status":"published","published":"2019-08-22T20:15:12.003Z","modified":"2026-06-17T02:16:08.997Z","cvss":[{"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","level":"high","assessor":"primary"},{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:05:23.725587Z"}],"osv":[{"id":"CVE-2019-13139","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.","status":"published","published":"2019-08-22T20:15:12.003Z","modified":"2026-10-24T10:49:48.129007806Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T15:44:11.029493Z"},{"id":"DEBIAN-CVE-2019-13139","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.","status":"published","published":"2019-08-22T20:15:12.003Z","modified":"2026-09-21T07:00:57.55173029Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T15:45:31.467893Z"},{"id":"RHBA-2019:3092","title":"Red Hat Bug Fix Advisory: docker bug fix update","status":"published","published":"2024-09-13T19:48:02Z","modified":"2025-11-22T11:38:24Z","cvss":[{"version":"3.0","score":6.7,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:52:58.117212Z"},{"id":"DSA-4521-1","title":"docker.io - security update","status":"published","published":"2019-09-09T00:00:00Z","modified":"2026-03-09T02:09:53.781141Z","updated_at":"2026-11-02T15:46:16.862196Z"}]}}
