Submeter #773929: deepwisdom MetaGPT v0.8.1 Remote command executioninformação

Títulodeepwisdom MetaGPT v0.8.1 Remote command execution
DescriçãoThe vulnerable component is located in `metagpt/ext/aflow/scripts/operator.py`. The `Programmer` class is used to pass user-controlled natural language questions to the `code_generate` method for LLM to generate code. The `sanitize` method checks and filters the AST structure of the code, and the `run_code` method implements security restrictions on the import of libraries such as command execution and sets global variables to null. Finally, execution is achieved through `exec(code, global_namespace)` in `run_code`. However, attackers can generate bypassable malicious Python code through carefully crafted prompt control, thereby remotely running arbitrary commands on the host machine.
Fonte⚠️ https://github.com/Ka7arotto/cve/blob/main/metagpt-rce1.md
Utilizador
 Goku (UID 80486)
Submissão06/03/2026 12h57 (há 7 meses)
Moderação20/03/2026 15h40 (14 days later)
EstadoAceite
Entrada VulDB352080 [Foundation Agents MetaGPT até 0.8.1 operator.py code_generate Elevação de Privilégios]
Pontos20

Do you want to use VulDB in your project?

Use the official API to access entries easily!