8.8high
Command Injection in significant-gravitas/autogpt
- Severity
- 8.8high CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 2.36% (higher than 85% of CVEs)
- Published
- Last changed
- Assigned by
- @huntr_ai
Description
A command injection vulnerability exists in the workflow-checker.yml workflow of significant-gravitas/autogpt. The untrusted user input `github.head.ref` is used insecurely, allowing an attacker to inject arbitrary commands. This vulnerability affects versions up to and including the latest version. An attacker can exploit this by creating a branch name with a malicious payload and opening a pull request, potentially leading to reverse shell access or theft of sensitive tokens and keys.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| significant-gravitas significant-gravitas/autogpt | from unspecified before 0.5.1 | CVE List |
| agpt autogpt_classic | before 0.5.1 | NVD |
All scores
| @huntr_ai | 8.8high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
A command injection vulnerability exists in the workflow-checker.yml workflow of significant-gravitas/autogpt. The untrusted user input `github.head.ref` is used insecurely, allowing an attacker to inject arbitrary commands. This vulnerability affects versions up to and including the latest version. An attacker can exploit this by creating a branch name with a malicious payload and opening a pull request, potentially leading to reverse shell access or theft of sensitive tokens and keys.
NVD (es)
Existe una vulnerabilidad de inyección de comandos en el flujo de trabajo workflow-checker.yml de significant-gravitas/autogpt. La entrada de usuario no confiable `github.head.ref` se usa de forma insegura, lo que permite a un atacante inyectar comandos arbitrarios. Esta vulnerabilidad afecta a versiones hasta la más reciente. Un atacante puede explotarla creando un nombre de rama con una carga maliciosa y abriendo una solicitud de extracción, lo que podría provocar acceso inverso al shell o el robo de tokens y claves confidenciales.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-8156 changed 2025-10-15 | CVE Terms of Use |
| NVD | CVE-2024-8156 changed 2026-06-17 | Public domain |