FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/utils/common.py
CVE-2026-5973 · GHSA-qw5f-qpq5-ppfg · 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 found in FoundationAgents MetaGPT up to 0.8.1. Impacted is the function get_mime_type of the file metagpt/utils/common.py. The manipulation results in os command injection. The attack can be executed remotely. The exploit has been made public and could be used. 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
- MediumFoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/tools/libs/terminal.pymetagpt
- MediumMetaGPT has an Injection issuemetagpt
- 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.