CVE-2026-5973
FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/utils/common.py
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (medium).
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | metagpt | no fix listed |
References
- https://github.com/FoundationAgents/MetaGPT
- https://github.com/FoundationAgents/MetaGPT/
- https://github.com/FoundationAgents/MetaGPT/issues/1930
- https://github.com/FoundationAgents/MetaGPT/pull/1983
- https://nvd.nist.gov/vuln/detail/CVE-2026-5973
- https://vuldb.com/submit/791755
- https://vuldb.com/vuln/356527
- https://vuldb.com/vuln/356527/cti