Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-5972: OS Command Injection in FoundationAgents MetaGPT

0
Medium
VulnerabilityCVE-2026-5972cvecve-2026-5972
Published: Thu Apr 09 2026 (04/09/2026, 19:00:20 UTC)
Source: CVE Database V5
Vendor/Project: FoundationAgents
Product: MetaGPT

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/17/2026, 12:25:26 UTC

Technical Analysis

FoundationAgents MetaGPT versions 0.8.0 and 0.8.1 contain an OS command injection vulnerability in the Terminal.run_command function within the metagpt/tools/libs/terminal.py file. This flaw allows remote attackers to inject and execute arbitrary operating system commands due to improper input handling. The vulnerability has been publicly disclosed, and a patch exists identified by commit d04ffc8dc67903e8b327f78ec121df5e190ffc7b. The CVSS 4.0 vector indicates network attack vector, low complexity, no privileges or user interaction required, with low to low impact on confidentiality, integrity, and availability.

Potential Impact

Successful exploitation of this vulnerability could allow remote attackers to execute arbitrary OS commands on affected systems running MetaGPT versions up to 0.8.1. This can lead to unauthorized system control or data compromise. The CVSS score of 6.9 reflects a medium severity impact with potential confidentiality, integrity, and availability consequences.

Mitigation Recommendations

A patch identified by commit d04ffc8dc67903e8b327f78ec121df5e190ffc7b is available and should be applied to affected MetaGPT versions to remediate this OS command injection vulnerability. No vendor advisory content was provided to indicate alternative mitigations or that no action is required. Therefore, applying the official patch is the recommended remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulDB
Date Reserved
2026-04-09T12:04:27.184Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69d7ff961cc7ad14da10ea3f

Added to database: 4/9/2026, 7:35:50 PM

Last enriched: 4/17/2026, 12:25:26 PM

Last updated: 5/25/2026, 11:56:38 AM

Views: 95

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses