Arbitrary Command 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
2.24% (81st 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 Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-METAGPT-16318381
  • published28 Apr 2026
  • disclosed9 Apr 2026
  • creditYLChen-007 Edward-x

Introduced: 9 Apr 2026

CVE-2026-5974  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

metagpt is a The Multi-Agent Framework

Affected versions of this package are vulnerable to Arbitrary Command Injection via the Bash.run method in metagpt/tools/libs/terminal.py. An attacker can execute arbitrary operating system commands by supplying crafted input remotely.

CVSS Base Scores

version 4.0
version 3.1