CVE-2020-26222
Last modified
CVE-2020-26222 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. Dependabot is a set of packages for automated dependency management for Ruby, JavaScript, Python, PHP, Elixir, Rust, Java, .NET, Elm and Go. In Dependabot-Core from version 0.119.0.beta1 before version 0.125.1, there is a remote code execution vulnerability in dependabot-common and dependabot-go_modules when a source branch name contains malicious injectable bash code. EPSS estimates a 2.94% chance of exploitation in the next 30 days.
Description
Dependabot is a set of packages for automated dependency management for Ruby, JavaScript, Python, PHP, Elixir, Rust, Java, .NET, Elm and Go. In Dependabot-Core from version 0.119.0.beta1 before version 0.125.1, there is a remote code execution vulnerability 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 following source branch name: "/$({curl,127.0.0.1})", Dependabot will make a HTTP request to the following URL: 127.0.0.1 when cloning the source repository. The fix was applied to version 0.125.1. As a workaround, one can escape the branch name prior to passing it to the Dependabot::Source class.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Dependabot Project | Dependabot | >= 0.119.1, < 0.125.1 |
| Dependabot Project | Dependabot | 0.119.0 |
References
- https://github.com/dependabot/dependabot-core/commit/e089116abbe284425b976f7920e502b8e83a61b5Patch, Third Party Advisory
- https://github.com/dependabot/dependabot-core/pull/2727Patch, Third Party Advisory
- https://github.com/dependabot/dependabot-core/security/advisories/GHSA-23f7-99jx-m54rExploit, Third Party Advisory
- https://github.com/dependabot/dependabot-core/commit/e089116abbe284425b976f7920e502b8e83a61b5Patch, Third Party Advisory
- https://github.com/dependabot/dependabot-core/pull/2727Patch, Third Party Advisory
- https://github.com/dependabot/dependabot-core/security/advisories/GHSA-23f7-99jx-m54rExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-26222?
How severe is CVE-2020-26222?
How do I fix CVE-2020-26222?
Are you affected by CVE-2020-26222?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
