CVE-2025-1040

published 20 Mar 2025 · updated 15 Oct 2025

Server-Side Template Injection (SSTI) in significant-gravitas/autogpt

8.8HighCVSS 8.8EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in v0.4.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Significant-Gravitas<v0.4.0v0.4.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-1040 severity on Zeptric[![CVE-2025-1040](https://zeptric.io/badge/cve/CVE-2025-1040.svg)](https://zeptric.io/cve/CVE-2025-1040)