SecurityContext

CVE-2025-1040: AutoGPT - Server-Side Template Injection

  • Cve: CVE-2025-1040
  • Name: AutoGPT - Server-Side Template Injection
  • Description: AutoGPT versions 0.3.4 and earlier are vulnerable to a Server-Side Template Injection (SSTI) that could lead to Remote Code Execution (RCE). The vulnerability arises from the improper handling of user-supplied format strings in the `AgentOutputBlock` implementation, where malicious input is passed to the Jinja2 templating engine without adequate security measures. Attackers can exploit this flaw to execute arbitrary commands on the host system. The issue is fixed in version 0.4.0.
  • Impact: Attackers can execute arbitrary commands on the host system, leading to remote code execution and potential full system compromise.
  • Remediation: Update to version 0.4.0 or later.
  • Vulnerability type: template_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01746
  • Epss percentile: 0.78391
  • Assignee: [email protected]
  • Published at: 2025-03-20T10:15:53Z
  • Age in days: 614
  • Modified at: 2026-06-17T08:38:16Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-1040
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-1336Improper Neutralization of Special Elements Used in a Template Engine

Public exploits

UrlSourceAdded date
https://huntr.com/bounties/b74ef75f-61d5-4422-ab15-9550c8b4f185nvd2025-03-20

References

UrlSourceTags
https://github.com/significant-gravitas/autogpt/commit/6dba31e0215549604bdcc1aed24e3a1714e75ee2nvdPatch
https://huntr.com/bounties/b74ef75f-61d5-4422-ab15-9550c8b4f185nvdExploit

Products

ProductAffectedPlatform boundSourcesUrl
agpt:autogpt_platform< 0.4.0nonvd/v1/products/agpt/autogpt_platform

Projects

RepositoryLink kindsIndexedUrl
Significant-Gravitas/AutoGPTcommityes/v1/repositories/Significant-Gravitas/AutoGPT

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-03-20
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts