CVE-2019-13139

docker: command injection due to a missing validation of the git ref command

Published Aug 22, 2019 CVSS 3.0 · 8.4 High EPSS 2.0% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-4521-1 docker.io security update
EUVD EUVD EUVD-2019-4672 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.
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 11:41 PM
Reserved
Jul 1, 2019, 12:00 AM
Status
Modified
Published
Aug 22, 2019, 8:15 PM
Modified
Jun 17, 2026, 2:16 AM
Severity
Moderate
Public date
Mar 26, 2019, 12:00 AM