Browse / AI Framework and Platform Flaws / CVE-2026-5973
FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/utils/common.py
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Code and command execution
- Affected
- metagpt (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- EPSS
- 2.6% chance of exploitation in 30 days
How it works, in short
The MIME type helper builds an operating system command from untrusted input, allowing injected shell commands to execute. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-5973
- https://github.com/FoundationAgents/MetaGPT/issues/1930
- https://github.com/FoundationAgents/MetaGPT/pull/1983
- https://github.com/FoundationAgents/MetaGPT
- https://vuldb.com/submit/791755
- https://vuldb.com/vuln/356527
- https://vuldb.com/vuln/356527/cti
Source: GitHub Advisory Database, used under CC BY 4.0.