Skip to main content

Foundation Agents CVE-2026-4516

| EUVDEUVD-2026-14252 LOW
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-03-21 VulDB GHSA-xwvj-r2ph-6xqj
2.1
CVSS 4.0 · NVD
View

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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

MetaGPT 0.8.1
MetaGPT 0.8.0

Affected Packages

euvd metagpt no fix

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

NVD PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Severity Changed
Apr 29, 2026 - 01:11 NVD
MEDIUM LOW
CVSS changed
Apr 29, 2026 - 01:11 NVD
6.3 (MEDIUM) 2.1 (LOW)
PoC Detected
Mar 23, 2026 - 14:31 vuln.today
Public exploit code
CVE Published
Mar 21, 2026 - 15:02 nvd
MEDIUM 6.3

DescriptionCVE.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

Why It Matters

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.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Related Vulnerabilities in MetaGPT Code Injection Vulnerabilities

View all 2

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy