CVE-2025-58371CWE-78command-injection

CVE-2025-58371

Critical · published September 6, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
57.2
In the wild
Unconfirmed
What it is

🚨 A single malicious pull request could grant an attacker full control over your repository! In versions 3.26.6 and below of Roo Code, an unsanitized GitHub workflow opens the door to Remote Code Execution (RCE). 🔥 Think of your repository as a high-security vault, and this vulnerability as a sneaky insider who can bypass security checks by crafting a forged badge. Once inside, they can not only access sensitive secrets but also manipulate anything they want! If exploited, an attacker could execute arbitrary commands on the Actions runner, push or modify code in the repository, and even create malicious releases or packages. This could lead to a catastrophic compromise of your repository and all its connected services, leaving your valuable code at the mercy of an adversary!

Put simply

Think of your repository as a high-security vault, and this vulnerability as a sneaky insider who can bypass security checks by crafting a forged badge. Once inside, they can not only access sensitive secrets but also manipulate anything they want! This issue arises from unsanitized pull request metadata being processed in a privileged context within GitHub workflows, enabling Remote Code Execution with broad permissions including access to repository secrets.

What to do

If exploited, an attacker could execute arbitrary commands on the Actions runner, push or modify code in the repository, and even create malicious releases or packages. This could lead to a catastrophic compromise of your repository and all its connected services, leaving your valuable code at the mercy of an adversary! Update to version 3.26.7 immediately to patch this vulnerability. Review your workflows to ensure they sanitize all inputs properly, and consider implementing additional security measures like least privilege access. Don't forget to audit your repository for any unauthorized changes! You've got this! Fixing this vulnerability will keep your repository secure and your code safe. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00833 · 57.2th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-09-06T03:15Z
Affected products (1)
ProductVersionsFixed in
roocode/roo_code< 3.26.73.26.7
References (2)
EPSS history
Timeline
  • 05 SEP 22:42Z
    Roo Code is vulnerable to command injection via GitHub actions workflow
    cvelistv5