FoundationAgents MetaGPT vulnerable to os command injection via the Terminal.run_command
Moderate severity
GitHub Reviewed
Published
Apr 9, 2026
to the GitHub Advisory Database
•
Updated Apr 10, 2026
Description
Published by the National Vulnerability Database
Apr 9, 2026
Published to the GitHub Advisory Database
Apr 9, 2026
Reviewed
Apr 10, 2026
Last updated
Apr 10, 2026
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.
References