# CVE-2024-8156: Command Injection in significant-gravitas/autogpt

- Severity: High 8.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.36%, higher than 85% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:09:12.930Z
- Modified: 2026-06-17T08:22:00.827Z
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- significant-gravitas significant-gravitas/autogpt: from unspecified before 0.5.1
- agpt autogpt_classic: before 0.5.1

## Every score

- @huntr_ai: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/959efe87-f109-4cef-94d8-90ff2c7aef51> (exploit)
- <https://github.com/significant-gravitas/autogpt/commit/1df7d527dd37dff8363dc162fb58d300f072e302> (patch)

## Sources

- CVE List: [CVE-2024-8156](https://www.cve.org/CVERecord?id=CVE-2024-8156), CVE Terms of Use, modified 2025-10-15
- NVD: [CVE-2024-8156](https://nvd.nist.gov/vuln/detail/CVE-2024-8156), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-8156 · Whole record: https://cve.day/CVE-2024-8156.json · Rebuilt by cve.day 2026-11-25T22:58:52.392Z
