{"id":"CVE-2024-8156","summary":"Command Injection in significant-gravitas/autogpt","details":"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.","modified":"2026-08-12T03:51:12.803727139Z","published":"2025-03-20T10:09:12.930Z","database_specific":{"cwe_ids":["CWE-77"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8156.json","cna_assigner":"@huntr_ai"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/959efe87-f109-4cef-94d8-90ff2c7aef51"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8156.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8156"},{"type":"FIX","url":"https://github.com/significant-gravitas/autogpt/commit/1df7d527dd37dff8363dc162fb58d300f072e302"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/significant-gravitas/autogpt","events":[{"introduced":"0"},{"fixed":"26324f29849967fa72c207da929af612f1740669"},{"fixed":"1df7d527dd37dff8363dc162fb58d300f072e302"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.5.1"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:agpt:autogpt_classic:*:*:*:*:*:*:*:*"}}],"versions":["autogpt-v0.5.0","agbenchmark-v0.0.10","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-8156.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}