Medium, CVSS 5.5PyPIAmendedPublished
FoundationAgents MetaGPT vulnerable to os command injection via the Terminal.run_command
CVE-2026-5972 · GHSA-wp29-qmvj-frvp
- Affected
- PyPI metagpt <= 0.8.1
- Fixed in
- 0.8.2· Vendor fix available
- Issue
- A vulnerability has been found in FoundationAgents MetaGPT up to 0.8.1. This issue affects the function Terminal.runcommand 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.
Recommended action: Upgrade to 0.8.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.