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

Published Mar 20, 2025
·
Updated

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 Software

2 affected components
significant-gravitas AutoGPT<0.4.0
Agpt Autogpt Platform<0.4.0

Event History

Mar 20, 2025
CVE Published
via MITRE·10:11 AM
Data Sourced
via MITRE·10:11 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-1040?

CVE-2025-1040 has a critical severity rating due to its potential to allow Remote Code Execution.

2

How do I fix CVE-2025-1040?

To fix CVE-2025-1040, upgrade AutoGPT to version 0.4.0 or later.

3

What causes the vulnerability in CVE-2025-1040?

CVE-2025-1040 is caused by improper handling of user-supplied format strings in the AgentOutputBlock implementation.

4

Which versions of AutoGPT are affected by CVE-2025-1040?

AutoGPT versions 0.3.4 and earlier are affected by CVE-2025-1040.

5

What impact does CVE-2025-1040 have on security?

CVE-2025-1040 can lead to Remote Code Execution, compromising the security of affected systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203