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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

CVSS 7.3 · High EPSS 0.41% · P61
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Source: NVD (National Vulnerability Database)
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
FoundationAgentsMetaGPT 0.8.0 -

II. Public POCs for CVE-2026-5972

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-5972

登录查看更多情报信息。

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

CVE-2026-59707.3 HIGHFoundationAgents MetaGPT HumanEvalBenchmark/MBPPBenchmark check_solution code injection
CVE-2026-59717.3 HIGHFoundationAgents MetaGPT XML action_node.py ActionNode.xml_fill eval injection
CVE-2026-59737.3 HIGHFoundationAgents MetaGPT common.py get_mime_type os command injection
CVE-2026-59747.3 HIGHFoundationAgents MetaGPT terminal.py Bash.run os command injection

IV. Related Vulnerabilities

V. Comments for CVE-2026-5972

No comments yet


Leave a comment