CVE-2026-6110 Details
Description
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.
A code injection vulnerability has been identified in FoundationAgents MetaGPT versions through 0.8.1. The issue resides in the Tree-of-Thought (ToT) solver, specifically within the 'generate_thoughts' function of 'metagpt/strategy/tot.py'. This vulnerability allows for remote code execution (RCE) by using Python's 'eval()' function to process unvalidated responses from the language model (LLM). An attacker can manipulate the LLM's output through prompt injection, leading to the execution of arbitrary code on the machine running MetaGPT.
The vulnerability has been patched in the official repository by replacing 'eval()' with 'json.loads()' to safely parse JSON data. Users should update to the latest version of MetaGPT.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/FoundationAgents/MetaGPT/ | [email protected] | Product |
| https://github.com/FoundationAgents/MetaGPT/issues/1933 | [email protected] | Issue Tracking |
| https://github.com/FoundationAgents/MetaGPT/pull/1946 | [email protected] | Issue TrackingPatch |
| https://vuldb.com/submit/791761 | [email protected] | ExploitThird Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/356970 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/356970/cti | [email protected] | Permissions Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| deepwisdom metagpt | 0.8.0 0.8.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 30, 2026 | Initial Analysis | [email protected] |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 12, 2026 | New CVE Received | [email protected] |