Arbitrary Code Injection Affecting metagpt package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.24% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-METAGPT-15857123
  • published31 Mar 2026
  • disclosed21 Mar 2026
  • creditUnknown

Introduced: 21 Mar 2026

CVE-2026-4515  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for metagpt.

Overview

metagpt is a The Multi-Agent Framework

Affected versions of this package are vulnerable to Arbitrary Code Injection via the code_generate() function in the metagpt/ext/aflow/scripts/operator.py file. An attacker can execute arbitrary code by supplying crafted input to this function.

References

CVSS Base Scores

version 4.0
version 3.1