CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

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

8.8 CVSS

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.

Classification

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

Problem Types

CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')

Affected Products

Vendor: significant-gravitas

Product: significant-gravitas/autogpt

Exploit Prediction Scoring System (EPSS)

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)

References

https://nvd.nist.gov/vuln/detail/CVE-2025-1040
https://huntr.com/bounties/b74ef75f-61d5-4422-ab15-9550c8b4f185
https://github.com/significant-gravitas/autogpt/commit/6dba31e0215549604bdcc1aed24e3a1714e75ee2

Timeline