Skip to content
OpenAdvisories
Unscored Public exploit CVE-2019-13139 EUVD-2019-4672GHSA-33j8-c2xf-8225

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 ab…

Published Aug 22, 2019 · Updated Aug 4, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 docker.io 18.09.1+dfsg1-8 —
Debian 13 docker.io 18.09.1+dfsg1-8 —
Debian 12 docker.io 18.09.1+dfsg1-8 —
Debian 10 docker.io 18.09.1+dfsg1-7.1+deb10u1 DSA-4521-1
ReleasePackageFixed inAdvisory
Red Hat Rhel Extras Other 7 docker +7 2:1.13.1-104.git4ef4b30.el7 RHBA-2019:3092

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 docker-engine 18.09.8.ol-1.0.4.el7 ELSA-2019-4813

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 3

References