{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.5.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "26324f29849967fa72c207da929af612f1740669"
            },
            {
              "fixed": "1df7d527dd37dff8363dc162fb58d300f072e302"
            }
          ],
          "repo": "https://github.com/significant-gravitas/autogpt",
          "type": "GIT"
        }
      ]
    }
  ],
  "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.",
  "id": "CVE-2024-8156",
  "modified": "2026-03-13T21:47:45.900326073Z",
  "published": "2025-03-20T10:15:41.247Z",
  "references": [
    {
      "type": "FIX",
      "url": "https://github.com/significant-gravitas/autogpt/commit/1df7d527dd37dff8363dc162fb58d300f072e302"
    },
    {
      "type": "EVIDENCE",
      "url": "https://huntr.com/bounties/959efe87-f109-4cef-94d8-90ff2c7aef51"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}