PT-2020-16351
CVE-2020-26222
·
Published
2020-11-13
·
Updated
2020-12-03
Description by
CVSS 3.1
8.7
HighMetricsAV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions
Dependabot-Core versions 0.119.0.beta1 through 0.125.1
Description
There is a remote code execution issue in
dependabot-common and dependabot-go modules when a source branch name contains malicious injectable bash code. For example, if Dependabot is configured to use the source branch name: "/$({curl,127.0.0.1})", Dependabot will make a HTTP request to the URL: 127.0.0.1 when cloning the source repository. This occurs because Dependabot runs a shell command to git clone the repository, and the FileFetcher class from dependabot-common can be used to clone the repository for other package managers.Recommendations
For Dependabot-Core versions 0.119.0.beta1 through 0.125.1, update to version 0.125.1 to resolve the issue.
As a temporary workaround, escape the branch name prior to passing it to the
Dependabot::Source class, for example using shellwords to escape the branch name.Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾