Vulnerability · Published Mar 21, 2026 · Assigned by VulDB
CVE-2026-4515Foundation Agents MetaGPT operator.py code_generate code injection
Medium 6.3
In plain English
A medium-severity code injection in MetaGPT from Foundation Agents. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 16% of all known vulnerabilities).
Official description
A vulnerability has been found in Foundation Agents MetaGPT up to 0.8.1. This affects the function code_generate of the file metagpt/ext/aflow/scripts/operator.py. The manipulation leads to code injection. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Foundation Agents | MetaGPT | 0.8.00.8.1 |
Weakness: CWE-94, CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-352080 | Foundation Agents MetaGPT operator.py code_generate code injection vdb-entry, technical-description
- VDB-352080 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- Submit #773929 | deepwisdom MetaGPT v0.8.1 Remote command execution third-party-advisory
- https://github.com/Ka7arotto/cve/blob/main/metagpt-rce1.md exploit