CVE-2019-13139
🟠MediumDocker engine, the docker build path. The exposure is a build pipeline that accepts a remote git URL from anywhere but a trusted source, which is the common CI pattern this flaw punishes · Before 18.09.4. The record's structured vendor, product and version fields are all "n/a", so that bound comes from its description
81.55th percentile
Exploitation
Timeline
- 22/08/2019CVE record published (CVE List)
Risk
docker build mishandles a remote git URL, passing a git ref that can be read as a flag into git clone, so an attacker who supplies or manipulates the build path runs commands)Fix
Official 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.