CVE-2024-8156CWE-77

Command Injection in significant-gravitas/autogpt

High · published March 20, 2025

CVSS v3.0
8.8
EPSS
2%
Percentile
77.6
In the wild
Unconfirmed
What it is

⚡ A crafty command injection vulnerability lurks in the workflow-checker.yml of significant-gravitas/autogpt! An untrusted branch name can lead to malicious command execution. 🔥 Picture a restaurant where anyone can leave a dish with an order for the chef to prepare. If the chef doesn’t check the order carefully, they might end up cooking something dangerous instead of a delicious meal! An attacker can slip a malicious payload into a branch name and open a pull request, potentially gaining reverse shell access! This could lead to the theft of sensitive tokens and keys, compromising your whole project and leaving you vulnerable to all kinds of mayhem.

Put simply

Picture a restaurant where anyone can leave a dish with an order for the chef to prepare. If the chef doesn’t check the order carefully, they might end up cooking something dangerous instead of a delicious meal! This command injection vulnerability exploits the insecure handling of user input from `github.head.ref`, allowing attackers to inject arbitrary commands into the workflow. This affects all versions up to the latest release of significant-gravitas/autogpt.

What to do

An attacker can slip a malicious payload into a branch name and open a pull request, potentially gaining reverse shell access! This could lead to the theft of sensitive tokens and keys, compromising your whole project and leaving you vulnerable to all kinds of mayhem. Patch this vulnerability by updating to the fixed version as soon as it’s released, and ensure that all user inputs are properly validated and sanitized. Implement strict access controls and review your CI/CD workflows to prevent unauthorized inputs. You've got this! Stay vigilant, and with these steps, you’ll fortify your project like a security hero! 🛡️

The record
Technical detail
CVSS v3.0
8.8 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01742 · 77.6th percentile
Weakness
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published
2025-03-20T10:09Z
EPSS history
Timeline
  • 20 MAR 10:09Z
    Command Injection in significant-gravitas/autogpt
    cvelistv5