Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-5972— FoundationAgents MetaGPT terminal.py Terminal.run_command os command injection

Quick assessment

Affected
FoundationAgents MetaGPT
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

MetaGPT是MetaGPT公司的一个多代理框架。 MetaGPT 0.8.1及之前版本存在操作系统命令注入漏洞,该漏洞源于对metagpt/tools/libs/terminal.py库中Terminal.run_command函数的操作,可能导致os命令注入攻击。

CVSS 7.3 · High EPSS 3.49% · P89

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-5972

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
FoundationAgents MetaGPT terminal.py Terminal.run_command os command injection
Source: CVE Program / CVE List V5
Vulnerability Description
A vulnerability has been found in FoundationAgents MetaGPT up to 0.8.1. This issue affects the function Terminal.run_command in the library metagpt/tools/libs/terminal.py. The manipulation leads to os command injection. Remote exploitation of the attack is possible. The exploit has been disclosed to the public and may be used. The identifier of the patch is d04ffc8dc67903e8b327f78ec121df5e190ffc7b. Applying a patch is the recommended action to fix this issue.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
MetaGPT 操作系统命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
MetaGPT是MetaGPT公司的一个多代理框架。 MetaGPT 0.8.1及之前版本存在操作系统命令注入漏洞,该漏洞源于对metagpt/tools/libs/terminal.py库中Terminal.run_command函数的操作,可能导致os命令注入攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
FoundationAgents MetaGPT 0.8.0 -

II. Public POCs for CVE-2026-5972

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-5972

请登录查看更多情报信息。

Proof of Concept for CVE-2026-5972 (1)

Same Patch Batch · FoundationAgents · 2026-04-09 · 5 CVEs total

CVE-2026-5970 7.3 HIGH FoundationAgents MetaGPT HumanEvalBenchmark/MBPPBenchmark check_solution code injection
CVE-2026-5971 7.3 HIGH FoundationAgents MetaGPT XML action_node.py ActionNode.xml_fill eval injection
CVE-2026-5973 7.3 HIGH FoundationAgents MetaGPT common.py get_mime_type os command injection
CVE-2026-5974 7.3 HIGH FoundationAgents MetaGPT terminal.py Bash.run os command injection

IV. Related Vulnerabilities

V. Comments for CVE-2026-5972

No comments yet


Leave a comment