CVE-2026-19058 Details
Description
A vulnerability was found in FoundationAgents MetaGPT up to 0.8.2. The impacted element is the function DataInterpreter of the file metagpt/roles/di/data_interpreter.py. The manipulation results in code injection. The attack must be initiated from a local position. 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.
A code injection vulnerability exists in FoundationAgents MetaGPT versions through 0.8.2, specifically within the DataInterpreter function of the file metagpt/roles/di/data_interpreter.py. This vulnerability allows for the execution of attacker-controlled Python modules from the workspace in an unsandboxed Jupyter notebook environment, leading to unauthorized code execution and potential persistence on the host. The vulnerability requires local exploitation and has been publicly disclosed.
It is recommended to execute DataInterpreter code in a real sandbox or container boundary, remove trust in workspace module imports by default, and restrict importable modules to a reviewed allowlist. Additional hardening measures include scanning generated code for dynamic imports and dangerous module usage, mounting the workspace as data input rather than an unrestricted Python module search path, removing or heavily restricting access to host environment variables during execution, applying a file-system policy to prevent notebook execution from reaching arbitrary user paths, and logging import attempts from local workspace modules.
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.
Volerion
Assessed Aug 6, 2026CISA-ADP
Assessed Aug 7, 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://gist.github.com/tchen200311/6610c1bf4075b63fd13c51f83fef7a15 | [email protected] | ExploitTechnical Analysis |
| https://vuldb.com/cve/CVE-2026-19058 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/864254 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/386515 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/386515/cti | [email protected] | AdvisoryPermission 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 |
|---|---|
| FoundationAgents MetaGPT | <= 0.8.2 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 7, 2026 | CVE Modified | CISA-ADP |
| Aug 6, 2026 | New CVE Received | [email protected] |
Volerion