CVE-2019-13139
Docker Git Command Injection Vulnerability
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.
INFO
Published Date :
Aug. 22, 2019, 8:15 p.m.
Last Modified :
Aug. 24, 2020, 5:37 p.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
2.5
Public PoC/Exploit Available at Github
CVE-2019-13139 has a 3 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2019-13139
.
URL | Resource |
---|---|
https://access.redhat.com/errata/RHBA-2019:3092 | |
https://docs.docker.com/engine/release-notes/#18094 | Release Notes Vendor Advisory |
https://github.com/moby/moby/pull/38944 | Patch Third Party Advisory |
https://seclists.org/bugtraq/2019/Sep/21 | |
https://security.netapp.com/advisory/ntap-20190910-0001/ | |
https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/ | Exploit Third Party Advisory |
https://www.debian.org/security/2019/dsa-4521 |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
⚙ DevSecOps Kubernetes Playground ("A Hacker's Guide to Kubernetes")
Dockerfile Shell Ruby Smarty Jinja HCL
Underground Nexus Deployment - Dockerhub page - https://hub.docker.com/r/phoenixvlabs/core-nexus
Dockerfile Shell CUE
Metarget is a framework providing automatic constructions of vulnerable infrastructures.
cloud-native kubernetes container cloud-native-security kubernetes-security container-security container-escape target vulnerable-infrastructure vulnerabilities vulnerable-scenes vulnerable-infrastructures privilege-escalation kernel-exploitation
Python Shell HTML JavaScript PHP Perl Dockerfile C
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2019-13139
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2019-13139
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CWE Remap by [email protected]
Aug. 24, 2020
Action Type Old Value New Value Changed CWE CWE-77 CWE-78 -
CVE Modified by [email protected]
Oct. 29, 2019
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHBA-2019:3092 [No Types Assigned] -
CVE Modified by [email protected]
Sep. 10, 2019
Action Type Old Value New Value Added Reference https://seclists.org/bugtraq/2019/Sep/21 [No Types Assigned] -
CVE Modified by [email protected]
Sep. 10, 2019
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20190910-0001/ [No Types Assigned] -
CVE Modified by [email protected]
Sep. 10, 2019
Action Type Old Value New Value Added Reference https://www.debian.org/security/2019/dsa-4521 [No Types Assigned] -
Initial Analysis by [email protected]
Aug. 30, 2019
Action Type Old Value New Value Added CVSS V2 (AV:L/AC:L/Au:N/C:P/I:P/A:P) Added CVSS V3 AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://docs.docker.com/engine/release-notes/#18094 No Types Assigned https://docs.docker.com/engine/release-notes/#18094 Release Notes, Vendor Advisory Changed Reference Type https://github.com/moby/moby/pull/38944 No Types Assigned https://github.com/moby/moby/pull/38944 Patch, Third Party Advisory Changed Reference Type https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/ No Types Assigned https://staaldraad.github.io/post/2019-07-16-cve-2019-13139-docker-build/ Exploit, Third Party Advisory Added CWE CWE-77 Added CPE Configuration OR *cpe:2.3:a:docker:docker:*:*:*:*:enterprise:*:*:* versions up to (excluding) 18.09.4
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2019-13139
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2019-13139
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.40 }} 0.12%
score
0.73860
percentile