# CVE-2020-26222: Remote code execution in dependabot-core

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.09%, higher than 88% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-11-13T15:47:50.000Z
- Modified: 2026-07-08T06:29:09.252Z
- Also known as: GHSA-23f7-99jx-m54r
- Weaknesses: CWE-74
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- dependabot dependabot-core: < 0.125.1
- dependabot-omnibus (RubyGems): from 0.119.0.beta1 before 0.125.1
- dependabot-common (RubyGems): from 0.119.0.beta1 before 0.125.1
- dependabot_project dependabot: from 0.119.1 before 0.125.1; 0.119.0

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/dependabot/dependabot-core/security/advisories/GHSA-23f7-99jx-m54r> (exploit, third-party-advisory, web)
- <https://github.com/dependabot/dependabot-core/pull/2727> (patch, third-party-advisory, web)
- <https://github.com/dependabot/dependabot-core/commit/e089116abbe284425b976f7920e502b8e83a61b5> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26222> (advisory)
- <https://github.com/dependabot/dependabot-core> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/dependabot-common/CVE-2020-26222.yml> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/dependabot-omnibus/CVE-2020-26222.yml> (web)
- <https://rubygems.org/gems/dependabot-common> (web)
- <https://rubygems.org/gems/dependabot-omnibus> (web)

## Sources

- CVE List: [CVE-2020-26222](https://www.cve.org/CVERecord?id=CVE-2020-26222), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-23f7-99jx-m54r](https://github.com/advisories/GHSA-23f7-99jx-m54r), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-26222](https://nvd.nist.gov/vuln/detail/CVE-2020-26222), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26222 · Whole record: https://cve.day/CVE-2020-26222.json · Rebuilt by cve.day 2026-11-25T22:57:55.804Z
