CVE-2026-4515 MEDIUM

CVE-2026-4515: Foundation Agents MetaGPT operator.py code_generate code injection

Vendor Foundation Agents
Product MetaGPT
Weakness CWE-94 · Code injection
Published March 21, 2026
Last update March 24, 2026

CVSS base score

5.3/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality
Integrity

CVSS 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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

March 21, 2026 CVE published
March 24, 2026 Record updated