INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2026-5973

FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/utils/common.py

CVE-2026-5973 ยท 2026-04-09 moderate

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

Source: GitHub Advisory Database, used under CC BY 4.0.