Vulnerabilities · 2019 · Docker
CVE-2019-13139
Docker vulnerability
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.
Affected products
Docker. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Docker runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- docs.docker.com/engine/release-notes/#18094 · Vendor Advisory
- github.com/moby/moby/pull/38944 · Patch
- staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/ · Exploit
- access.redhat.com/errata/RHBA-2019:3092
- seclists.org/bugtraq/2019/Sep/21
- security.netapp.com/advisory/ntap-20190910-0001/
- www.debian.org/security/2019/dsa-4521
- nvd.nist.gov/vuln/detail/CVE-2019-13139
- cve.org/CVERecord?id=CVE-2019-13139
More vulnerabilities in Docker products
CVE-2026-6406CVE-2026-5843CVE-2026-5817CVE-2025-13743CVE-2025-3224CVE-2024-8696CVE-2024-8695CVE-2024-6222All 89
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.