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.
CVE ID: CVE-2025-1040
CVSS Base Severity: HIGH
CVSS Base Score: 8.8
CVSS Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vendor: significant-gravitas
Product: significant-gravitas/autogpt
EPSS Score: 0.39% (probability of being exploited)
EPSS Percentile: 59.08% (scored less or equal to compared to others)
EPSS Date: 2025-04-18 (when was this score calculated)