CVE-2025-58371 Roo Code is vulnerable to command injection via GitHub actions workflow

Critical 9.9 Published Updated

Attackers can achieve remote code execution on GitHub Actions runners via unsanitized pull request metadata, compromising repository secrets and integrity.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-58371?

CVE-2025-58371 is a critical command injection vulnerability in RooCodeInc Roo-Code, published on 5 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Roo Code is an AI-powered autonomous coding agent that lives in users' editors. In versions 3.26.6 and below, a Github workflow used unsanitized pull request metadata in a privileged context, allowing an attacker to craft malicious input and achieve Remote Code Execution (RCE) on the Actions runner. The workflow runs with broad permissions and access to repository secrets. It is possible for an attacker to execute arbitrary commands on the runner, push or modify code in the repository, access secrets, and create malicious releases or packages, resulting in a complete compromise of the repository and its associated services. This is fixed in version 3.26.7.

Weakness: CWE-78

Which versions are affected by CVE-2025-58371?

It affects 1 product.

Products include Roocode Roo Code.

How do I fix CVE-2025-58371?

No fix has been published for CVE-2025-58371 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-58371 being exploited?

There is no known exploitation of CVE-2025-58371 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-xr6r-vj48-29f6.

Is CVE-2025-58371 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free