CVE-2025-1040: Agpt Autogpt Platform

High severity, CVSS 8.8. EPSS: 1.7% chance of exploitation in the next 30 days.

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 products

  • Agpt Autogpt Platform: before 0.4.0 (fixed in 0.4.0)

Published 2025-03-20. Last modified 2026-06-17.