Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Impact | The CVSS v3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L) indicates network accessibility with low attack complexity and moderate privilege requirements, resulting in a base score of 6.3. The availability of a public proof-of-concept exploit significantly elevates real-world exploitation probability and moves this from theoretical to demonstrable risk. The lack of vendor response despite early disclosure is a critical red flag indicating no official patch timeline. However, the requirement for authenticated access (PR:L) and the limited scope (User scope unchanged) moderates the overall severity compared to unauthenticated remote code execution vulnerabilities. This represents a medium-priority vulnerability that requires urgent patching for any organization running MetaGPT in authenticated environments, particularly those exposed to untrusted users or data sources, but does not constitute an emergency requiring immediate shutdown of systems. |
| Exploit ScenarioDerived | An authenticated user of a MetaGPT instance crafts a specially malicious prompt or input containing code injection payloads designed to escape the intended code generation context and inject arbitrary Python commands into the write_analysis_code.py processing pipeline. When the DataInterpreter processes this input without proper sanitization, the injected code is incorporated into generated analysis code and executed on the server with the privileges of the MetaGPT process. A public proof-of-concept is available on GitHub demonstrating this technique, making reproduction and exploitation straightforward for attackers with valid credentials or access to exposed APIs. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 21, 2026
A code injection vulnerability exists in Foundation Agents MetaGPT up to version 0.8.1, specifically in the DataInterpreter component's write_analysis_code.py file, allowing authenticated attackers to inject and execute arbitrary code remotely. The vulnerability is classified as CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component) with a CVSS score of 6.3 and requires low privileges and no user interaction. A public proof-of-concept exploit is available, indicating active research and potential real-world exploitation risk.
RemediationAI
Immediately upgrade Foundation Agents MetaGPT to a version newer than 0.8.1 if available; however, given the lack of vendor response, verify patch availability on the official GitHub repository (https://github.com/geekan/MetaGPT) before upgrading. If no patched version is available, implement compensating controls by restricting network access to the MetaGPT service to only trusted internal users and networks, enforcing strong authentication mechanisms, and running MetaGPT in a sandboxed or containerized environment with minimal privilege escalation potential. Additionally, implement strict input validation and output encoding for any user-supplied data that may influence code generation within the DataInterpreter component, and monitor execution logs for suspicious code injection patterns. Consider forking the project or applying manual patches based on the public exploit analysis until an official fix is released.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
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 MetaGPT framework (CPE: cpe:2.3:a:foundation_agents:metagpt:*:*:*:*:*:*:*:*), specifically within the DataInterpreter component's write_analysis_code.py module. The root cause is classified under CWE-74, which involves improper neutralization of special elements in output used by a downstream component—in this context, likely a failure to properly sanitize or validate code generation inputs before they are processed or executed by the interpreter. MetaGPT is an AI agent framework that generates code based on user prompts, making injection vectors particularly dangerous if user-supplied or external data is not properly escaped or validated before being incorporated into generated Python code that is subsequently executed.
Know when Foundation Agents 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:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
A vulnerability was found in Foundation Agents MetaGPT up to 0.8.1. This vulnerability affects unknown code of the file metagpt/actions/di/write_analysis_code.py of the component DataInterpreter. The manipulation results in injection. It is possible to launch the attack remotely. The exploit has been made public and could be used. The vendor was contacted early about this disclosure but did not respond in any way.
Executive ViewAI
Organizations using Foundation Agents MetaGPT should be aware of moderate risk from CVE-2026-4516, a injection vulnerability rated CVSS 6.3. Exploitation could allow attackers to execute code or inject malicious input. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
EUVD-2026-14252
GHSA-xwvj-r2ph-6xqj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB