HIGH · CVSS 8.8 Published: 2025-03-20
CVE-2025-1040 — Technical Security Advisory & CVSS Profile
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.
Technical Metadata
| Identifier | CVE-2025-1040 |
|---|---|
| Base Severity / Score | HIGH (8.8 / 10.0) |
| CVSS Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Weakness Classification | CWE-1336 |
| Archive Categories | HIGH Advisories · 2025 Index |
Operational Mitigation Guidance
Prioritize remediation in the next maintenance cycle. Validate affected dependency versions in SBOM manifests and review inbound access controls. For architectural isolation principles, review per-process namespace isolation.
Upstream References
- https://github.com/significant-gravitas/autogpt/commit/6dba31e0215549604bdcc1aed24e3a1714e75ee2
- https://huntr.com/bounties/b74ef75f-61d5-4422-ab15-9550c8b4f185
- https://huntr.com/bounties/b74ef75f-61d5-4422-ab15-9550c8b4f185
Related Security Advisories
CVE-2025-10398 MEDIUM 6.3
CVE-2025-10400 MEDIUM 6.3
CVE-2025-10396 HIGH 7.3
CVE-2025-10402 HIGH 7.3
CVE-2025-10403 HIGH 7.3
CVE-2025-10404 HIGH 7.3
CVE-2025-10405 HIGH 7.3
CVE-2025-10413 HIGH 7.3