Skip to main content

Metagpt EUVDEUVD-2026-21696

| CVE-2026-6110 MEDIUM
Code Injection (CWE-94)
2026-04-12 VulDB GHSA-xr7v-m9px-q4qj
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed MetaGPT instance
  2. Delivery
    Craft malicious input for generate_thoughts function
  3. Exploit
    Inject code via Tree-of-Thought solver parameter
  4. Execution
    Execute arbitrary code in MetaGPT runtime
  5. Impact
    Compromise confidentiality, integrity, and availability

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

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 real-world risk with mixed signals. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates exploitability from the network with low complexity and no authentication required, which is highly concerning. However, the Scope:Unchanged (S:U) and partial impacts (C:L/I:L/A:L) limit the blast radius to the vulnerable component itself. The E:P (Proof-of-Concept) modifier confirms publicly available exploit code exists, significantly lowering the barrier to exploitation. Vendor patch availability via GitHub PR #1946 provides a remediation path, but the RL:X (Remediation Level Unknown) and lack of vendor response to the initial issue report (GitHub #1933) raises concerns about patch adoption and formal release status. Without EPSS data or CISA KEV inclusion, confirmed widespread active exploitation is not evidenced, but the combination of network accessibility, no auth requirement, and public POC makes this a realistic threat for internet-exposed MetaGPT deployments. Organizations using MetaGPT in production should prioritize remediation, particularly if the framework processes untrusted input or is accessible to external parties.

Exploit ScenarioDerived

An unauthenticated remote attacker identifies a MetaGPT instance exposed on the network and crafts malicious input designed to exploit the generate_thoughts function in the Tree-of-Thought solver. By injecting specially-crafted code into parameters processed by tot.py, the attacker triggers code execution within the MetaGPT runtime environment. Publicly available exploit code (GitHub issue #1933) provides ready-made payloads, enabling attackers to execute arbitrary commands, exfiltrate sensitive data processed by the AI framework, modify agent behavior, or pivot to other systems accessible from the compromised MetaGPT instance. The low attack complexity and lack of authentication requirement make this readily exploitable against internet-facing deployments.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 12, 2026

Code injection in FoundationAgents MetaGPT versions up to 0.8.1 allows unauthenticated remote attackers to execute arbitrary code via the Tree-of-Thought Solver's generate_thoughts function. Publicly available exploit code exists (GitHub issue #1933), and a vendor-supplied patch is available via pull request #1946. The vulnerability requires no user interaction and has low attack complexity, with confirmed impact to confidentiality, integrity, and availability. CVSS 7.3 (High) reflects moderate impact across all CIA triad elements.

RemediationAI

Apply the vendor-supplied patch available via GitHub pull request at https://github.com/FoundationAgents/MetaGPT/pull/1946, which addresses the code injection vulnerability in the Tree-of-Thought solver. Organizations should review the PR changes, test compatibility with existing workflows, and upgrade to a version incorporating this fix once officially released. Until a tagged release version incorporating PR #1946 is available, development teams may apply the patch manually or build from the patched source branch. As an interim mitigation, restrict network access to MetaGPT instances, implement input validation on any data passed to the Tree-of-Thought solver, and monitor for suspicious code execution patterns. Consider disabling the ToT strategy module entirely if not operationally required. Consult the vendor issue tracker at https://github.com/FoundationAgents/MetaGPT/issues/1933 for updates on formal release timelines.

Affected VersionsENISA

MetaGPT 0.8.0
MetaGPT 0.8.1

Affected Packages

pypi metagpt no fix

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

MetaGPT is an AI agent framework that implements advanced reasoning patterns including Tree-of-Thought (ToT) solving. The vulnerable function generate_thoughts in metagpt/strategy/tot.py (CWE-94: Improper Control of Generation of Code) accepts externally-influenced input that is dynamically evaluated or executed without adequate sanitization. Tree-of-Thought is a cognitive framework for LLM reasoning that explores multiple solution paths; the implementation flaw allows attackers to inject malicious code into the thought generation process. The affected CPE (cpe:2.3:a:foundationagents:metagpt) indicates all versions through 0.8.1 contain this flaw. Code injection vulnerabilities of this class typically arise from unsafe use of eval(), exec(), or similar dynamic code execution primitives on attacker-controlled data.

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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
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

6
PoC Detected
Apr 30, 2026 - 14:55 vuln.today
Public exploit code
CVSS changed
Apr 29, 2026 - 01:11 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
Severity Changed
Apr 12, 2026 - 03:22 NVD
HIGH MEDIUM
CVSS changed
Apr 12, 2026 - 03:22 NVD
7.3 (HIGH) 6.9 (MEDIUM)
Patch released
Apr 12, 2026 - 02:45 nvd
Patch available
CVE Published
Apr 12, 2026 - 02:00 nvd
MEDIUM 5.5

DescriptionCVE.org

A vulnerability was identified in FoundationAgents MetaGPT up to 0.8.1. This affects the function generate_thoughts of the file metagpt/strategy/tot.py of the component Tree-of-Thought Solver. The manipulation leads to code injection. It is possible to initiate the attack remotely. The exploit is publicly available and might be used. The project was informed of the problem early through an issue report but has not responded yet.

Executive ViewAI

Why It Matters

CVE-2026-6110 is a critical code injection vulnerability in FoundationAgents MetaGPT versions up to 0.8.1 that allows unauthenticated attackers to execute arbitrary code remotely without user interaction. Organizations deploying MetaGPT for AI-driven decision-making or automation workflows face immediate risk of system compromise, data exfiltration, and operational disruption. Immediate patching is essential to prevent unauthorized access to backend systems and sensitive data processing.

Business Impact: Severe
Compensating Controls

Apply vendor patch via pull request #1946. If immediate patching is not possible, restrict network access to MetaGPT endpoints using WAF or network segmentation, disable the Tree-of-Thought Solver function until patch deployment, and implement request validation to block suspicious inputs to the generate_thoughts function.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL 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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
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.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Related Vulnerabilities in FoundationAgents MetaGPT Multiple Vulnerabilities

View all 3
CVE-2024-23750 HIGH POC
8.8 Jan 22

MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell met

CVE-2026-0761 CRITICAL
9.8 Jan 23

MetaGPT has a code injection vulnerability in actionoutput_str_to_mapping (EPSS 2.6%) allowing remote attackers to execu

CVE-2026-0760 CRITICAL
9.8 Jan 23

MetaGPT by Foundation Agents has an insecure deserialization in deserialize_message (EPSS 1.7%) enabling remote code exe

CVE-2026-5973 MEDIUM POC
5.5 Apr 09

Remote command injection in FoundationAgents MetaGPT versions 0.8.0 and 0.8.1 via the get_mime_type function in metagpt/

CVE-2026-5972 MEDIUM POC
5.5 Apr 09

Remote code execution in FoundationAgents MetaGPT up to version 0.8.1 allows unauthenticated attackers to execute arbitr

CVE-2026-5971 MEDIUM POC
5.5 Apr 09

Remote code injection in FoundationAgents MetaGPT up to version 0.8.1 allows unauthenticated attackers to execute arbitr

CVE-2026-5970 MEDIUM POC
5.5 Apr 09

Code injection in FoundationAgents MetaGPT versions up to 0.8.1 allows unauthenticated remote attackers to execute arbit

CVE-2026-5974 MEDIUM
6.9 Apr 09

Remote command injection in FoundationAgents MetaGPT versions up to 0.8.1 allows unauthenticated network attackers to ex

CVE-2026-4516 LOW POC
2.1 Mar 21

A code injection vulnerability exists in Foundation Agents MetaGPT up to version 0.8.1, specifically in the DataInterpre

CVE-2026-4515 LOW POC
2.1 Mar 21

A code injection vulnerability exists in Foundation Agents MetaGPT versions up to 0.8.1 within the code_generate functio

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