FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/tools/libs/terminal.py
CVE-2026-5974 · GHSA-fcc8-4q7h-wvwc · published 2026-04-09 · updated 2026-04-10
- Severity
- Medium
- CVSS score
- 7.3
- Chance of exploitation (EPSS)
- 2.6%
- Fixed in
- No fix yet
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
A vulnerability was determined in FoundationAgents MetaGPT up to 0.8.1. The affected element is the function Bash.run in the library metagpt/tools/libs/terminal.py. This manipulation causes os command injection. The attack is possible to be carried out remotely. The project was informed of the problem early through a pull request but has not reacted yet.
No fixed release is listed yet for metagpt. Follow the source advisory for updates, and until one ships:
General guidance from ShieldPi, not a vendor fix
- Command or code injection. Remove or disable the affected server or tool, or run it in a sandbox with no secrets in its environment.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| metagpt | PyPI | <= 0.8.1 | No fix yet |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- HighCode execution in metagptmetagpt
- MediumMetaGPT has an eval injection in metagpt/strategy/tot.pymetagpt
- MediumFoundationAgents MetaGPT vulnerable to eval injectionmetagpt
- MediumMetaGPT has an Injection issuemetagpt
- MediumFoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/utils/common.pymetagpt
- MediumFoundationAgents MetaGPT vulnerable to os command injection via the Terminal.run_commandmetagpt
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.