Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | This vulnerability presents moderate-to-significant real-world risk. The CVSS v4.0 score of 6.9 reflects a network-based attack vector with low complexity and no privilege requirements, indicating broad exploitability. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms unauthenticated remote execution is possible without user interaction. The presence of publicly available proof-of-concept code significantly elevates practical risk, as exploitation barriers are lowered. Although CISA KEV status is not explicitly confirmed in the input data, the public POC combined with the unpatched state of affected versions suggests active exploitability risk. SSVC considerations: exploitation status is confirmed (POC exists), the attack is likely automatable via POC scripts, and technical impact includes confidentiality, integrity, and availability violations. The limited scope (SC:N) suggests impacts are confined to the affected system. The fact that the vendor has received a pull request but not yet released or merged a fix indicates a lag in patch deployment, extending the vulnerability window. |
| Exploit ScenarioDerived | An attacker sends a crafted request to a MetaGPT instance with a malicious filename or file parameter containing shell metacharacters (e.g., |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 09, 2026
Remote command injection in FoundationAgents MetaGPT versions 0.8.0 and 0.8.1 via the get_mime_type function in metagpt/utils/common.py allows unauthenticated attackers to execute arbitrary OS commands over the network with low complexity. Publicly available exploit code exists, and a patch pull request has been submitted but not yet merged by the vendor, creating an active vulnerability window for deployed instances.
RemediationAI
Upgrade MetaGPT to a patched version once released by the vendor. A patch pull request has been submitted at https://github.com/FoundationAgents/MetaGPT/pull/1983 and should be reviewed and merged to provide an official fix. Until a patched release is available, mitigate risk by restricting network access to MetaGPT services to trusted networks only, disabling or isolating the get_mime_type function if feasible, and monitoring for suspicious command execution patterns in logs. Check the official MetaGPT repository at https://github.com/FoundationAgents/MetaGPT/ for release announcements and patch availability.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the get_mime_type function within metagpt/utils/common.py, which handles MIME type detection. The underlying flaw is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), indicating that user-controlled input is passed unsanitized to operating system command execution routines. MetaGPT is an AI agent framework developed by FoundationAgents. The vulnerability likely stems from unsafe use of shell commands (such as os.popen, subprocess.call with shell=True, or similar constructs) when determining file MIME types, allowing injection of shell metacharacters by an attacker controlling file input.
Know when Metagpt gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
4DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell met
MetaGPT has a code injection vulnerability in actionoutput_str_to_mapping (EPSS 2.6%) allowing remote attackers to execu
MetaGPT by Foundation Agents has an insecure deserialization in deserialize_message (EPSS 1.7%) enabling remote code exe
Remote code execution in FoundationAgents MetaGPT up to version 0.8.1 allows unauthenticated attackers to execute arbitr
Code injection in FoundationAgents MetaGPT versions up to 0.8.1 allows unauthenticated remote attackers to execute arbit
Remote code injection in FoundationAgents MetaGPT up to version 0.8.1 allows unauthenticated attackers to execute arbitr
Code injection in FoundationAgents MetaGPT versions up to 0.8.1 allows unauthenticated remote attackers to execute arbit
Remote command injection in FoundationAgents MetaGPT versions up to 0.8.1 allows unauthenticated network attackers to ex
Server-side request forgery (SSRF) in FoundationAgents MetaGPT up to version 0.8.1 allows authenticated remote attackers
A code injection vulnerability exists in Foundation Agents MetaGPT up to version 0.8.1, specifically in the DataInterpre
A code injection vulnerability exists in Foundation Agents MetaGPT versions up to 0.8.1 within the code_generate functio
Cross-site request forgery in FoundationAgents MetaGPT through version 0.8.1 allows unauthenticated remote attackers to
EUVD-2026-21051
GHSA-qw5f-qpq5-ppfg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB