CVE-2025-1040

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:agpt:autogpt:*:*:*:*:*:*:*:*

History

01 Apr 2025, 20:19

Type Values Removed Values Added
CPE cpe:2.3:a:agpt:autogpt:*:*:*:*:*:*:*:*
First Time Agpt
Agpt autogpt
References () https://github.com/significant-gravitas/autogpt/commit/6dba31e0215549604bdcc1aed24e3a1714e75ee2 - () https://github.com/significant-gravitas/autogpt/commit/6dba31e0215549604bdcc1aed24e3a1714e75ee2 - Patch
References () https://huntr.com/bounties/b74ef75f-61d5-4422-ab15-9550c8b4f185 - () https://huntr.com/bounties/b74ef75f-61d5-4422-ab15-9550c8b4f185 - Exploit

20 Mar 2025, 16:15

Type Values Removed Values Added
References () https://huntr.com/bounties/b74ef75f-61d5-4422-ab15-9550c8b4f185 - () https://huntr.com/bounties/b74ef75f-61d5-4422-ab15-9550c8b4f185 -
Summary
  • (es) Las versiones 0.3.4 y anteriores de AutoGPT son vulnerables a Server-Side Template Injection (SSTI) que podría provocar una Ejecución Remota de Código (RCE). Esta vulnerabilidad se debe al manejo inadecuado de las cadenas de formato proporcionadas por el usuario en la implementación `AgentOutputBlock`, donde se pasa información maliciosa al motor de plantillas Jinja2 sin las medidas de seguridad adecuadas. Los atacantes pueden explotar esta vulnerabilidad para ejecutar comandos arbitrarios en el sistema host. El problema se ha corregido en la versión 0.4.0.

20 Mar 2025, 10:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-03-20 10:15

Updated : 2025-04-01 20:19


NVD link : CVE-2025-1040

Mitre link : CVE-2025-1040

CVE.ORG link : CVE-2025-1040


JSON object : View

Products Affected

agpt

  • autogpt
CWE
CWE-77

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