Skip to content
MediumVulnerability

GHSA-wp29-qmvj-frvp: FoundationAgents MetaGPT vulnerable to os command injection via the Terminal.run_command

Published
Record updated
View JSON
Affected
  • metagpt <= 0.8.1
Fixed in
0.8.2
  • released March 9, 2025, 396 days before disclosure

Summary

FoundationAgents MetaGPT up to 0.8.1 contains an OS command injection flaw in the Terminal.run_command function in metagpt/tools/libs/terminal.py. Remote exploitation is possible, and a public exploit has been disclosed that may be used.

Mitigation

Applying a patch is the recommended action. The patch identifier is d04ffc8dc67903e8b327f78ec121df5e190ffc7b.