{"id":"CVE-2026-4515","published":"2026-03-21T11:32:11Z","modified":"2026-03-24T14:09:01Z","title":"Foundation Agents MetaGPT operator.py code_generate code injection","vendor":"Foundation Agents","product":"MetaGPT","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00282,"percentile":0.2117,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://vuldb.com/?id.352080","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/?ctiid.352080","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/?submit.773929","tags":["third-party-advisory"]},{"url":"https://github.com/Ka7arotto/cve/blob/main/metagpt-rce1.md","tags":["exploit"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":4.23},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"foundation-agents","affectedVersions":[{"vendor":"Foundation Agents","product":"MetaGPT","versions":["0.8.0","0.8.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-24T14:08:20.431598Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-14250","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/Ka7arotto/cve/blob/main/metagpt-rce1.md"]}