MediumVulnerability
GHSA-wp29-qmvj-frvp: FoundationAgents MetaGPT vulnerable to os command injection via the Terminal.run_command
- Identifiers
- CVE-2026-5972GHSA-wp29-qmvj-frvp
- Published
- Record updated
- 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.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- metagptPyPILLM dependency since 2023-07-13
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online