CVE-2019-13139
Last modified
CVE-2019-13139 is a vulnerability of currently unknown severity. 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. EPSS estimates a 1.94% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Docker | Docker | < 18.09.4 |
References
- https://docs.docker.com/engine/release-notes/#18094Release Notes, Vendor Advisory
- https://github.com/moby/moby/pull/38944Patch, Third Party Advisory
- https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/Exploit, Third Party Advisory
- https://docs.docker.com/engine/release-notes/#18094Release Notes, Vendor Advisory
- https://github.com/moby/moby/pull/38944Patch, Third Party Advisory
- https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2019-13139?
How severe is CVE-2019-13139?
How do I fix CVE-2019-13139?
Are you affected by CVE-2019-13139?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
