CVE-2026-4515CWE-74CWE-94

Foundation Agents MetaGPT operator.py code_generate code injection

Medium · published March 21, 2026

CVSS v4.0
5.3
EPSS
0%
Percentile
38.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
5.3 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
EPSS
0.00450 · 38.2th percentile
Weaknesses
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'); CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-03-21T11:32Z
EPSS history
Timeline
  • 21 MAR 11:32Z
    Foundation Agents MetaGPT operator.py code_generate code injection
    cvelistv5