VDB
Sign up
HIGH7.3

PYSEC-2026-2644

FoundationAgents MetaGPT vulnerable to os command injection via the Terminal.run_command

Quick fix

PYSEC-2026-2644 — metagpt: upgrade to the fixed version with the command below.

pip install --upgrade 'metagpt>=0.8.2'

Details

A vulnerability has been found in FoundationAgents MetaGPT up to 0.8.1. This issue affects the function Terminal.run_command in the library metagpt/tools/libs/terminal.py. The manipulation leads to os command injection. Remote exploitation of the attack is possible. The exploit has been disclosed to the public and may be used. The identifier of the patch is d04ffc8dc67903e8b327f78ec121df5e190ffc7b. Applying a patch is the recommended action to fix this issue.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/metagpt
Introduced in: 0Fixed in: 0.8.2
Fixpip install --upgrade 'metagpt>=0.8.2'

References