Skip to content
Heist/ feed
Back to feed
High

CSRF to RCE in significant-gravitas/autogpt

Type: advisorySources: OSV

A Cross-Site Request Forgery (CSRF) vulnerability in significant-gravitas/autogpt version v0.5.0 allows attackers to execute arbitrary commands on the AutoGPT server. The vulnerability stems from the lack of protections on the API endpoint receiving instructions, enabling an attacker to direct a user running AutoGPT in their local network to a malicious website. This site can then send crafted requests to the AutoGPT server, leading to command execution. The issue is exacerbated by CORS being enabled for arbitrary origins by default, allowing the attacker to read the response of all cross-site queries. This vulnerability was addressed in version 5.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-1879
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 01:34 UTC · Revision 1

Source evidence

CSRF to RCE in significant-gravitas/autogpt

core-osv · Original source

Published 6 Jun 2024, 17:53 UTC

A Cross-Site Request Forgery (CSRF) vulnerability in significant-gravitas/autogpt version v0.5.0 allows attackers to execute arbitrary commands on the AutoGPT server. The vulnerability stems from the lack of protections on the API endpoint receiving instructions, enabling an attacker to direct a user running AutoGPT in their local network to a malicious website. This site can then send crafted requests to the AutoGPT server, leading to command execution. The issue is exacerbated by CORS being enabled for arbitrary origins by default, allowing the attacker to read the response of all cross-site queries. This vulnerability was addressed in version 5.1.

osv:CVE-2024-1879
Complete source record
{
  "id": "2f7722cd2827cb3af664a8fa49d6d201ffc05001c58aa29930ac044366a3b1ca",
  "url": "https://osv.dev/vulnerability/CVE-2024-1879",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CSRF to RCE in significant-gravitas/autogpt",
    "summary": "A Cross-Site Request Forgery (CSRF) vulnerability in significant-gravitas/autogpt version v0.5.0 allows attackers to execute arbitrary commands on the AutoGPT server. The vulnerability stems from the lack of protections on the API endpoint receiving instructions, enabling an attacker to direct a user running AutoGPT in their local network to a malicious website. This site can then send crafted requests to the AutoGPT server, leading to command execution. The issue is exacerbated by CORS being enabled for arbitrary origins by default, allowing the attacker to read the response of all cross-site queries. This vulnerability was addressed in version 5.1.",
    "evidence": "osv:CVE-2024-1879",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-1879",
      "aliases": [
        "CVE-2024-1879"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/significant-gravitas/autogpt",
              "type": "GIT",
              "events": [
                {
                  "introduced": "af3ebdf6af1704e42254ad07791bf7e1642c43d3"
                },
                {
                  "fixed": "26324f29849967fa72c207da929af612f1740669"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:agpt:autogpt_classic:0.5.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.5.0"
                      },
                      {
                        "last_affected": "0.5.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "26324f29849967fa72c207da929af612f1740669"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.5.0",
            "autogpt-v0.5.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-1879.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.697796925Z",
      "provider": "osv",
      "references": [
        "https://huntr.com/bounties/125c2d0c-0481-4e5c-ae90-fec263acdf32",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/1xxx/CVE-2024-1879.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-1879",
        "https://github.com/significant-gravitas/autogpt/commit/26324f29849967fa72c207da929af612f1740669"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-352"
        ],
        "cna_assigner": "@huntr_ai",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "5.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "SplitRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/1xxx/CVE-2024-1879.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-1879",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499457,
  "published_at": "2024-06-06T17:53:21.654+00:00"
}