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/09/2026, 19:51:14 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 insufficient input sanitization or validation. The vulnerability has been publicly disclosed, and a patch exists identified by commit d04ffc8dc67903e8b327f78ec121df5e190ffc7b. No official remediation level is provided in the source data, but applying the patch is recommended to mitigate the risk.

Potential Impact

Successful exploitation of this vulnerability could allow remote attackers to execute arbitrary OS commands on affected systems running MetaGPT versions 0.8.0 or 0.8.1. This could lead to unauthorized system control or compromise. The CVSS score of 6.9 reflects a medium severity with network attack vector, no privileges required, and no user interaction needed.

Mitigation Recommendations

A patch identified by commit d04ffc8dc67903e8b327f78ec121df5e190ffc7b is available and recommended to fix this vulnerability. Users of FoundationAgents MetaGPT versions 0.8.0 and 0.8.1 should apply this patch promptly to remediate the OS command injection issue. Patch status is not explicitly confirmed in the vendor advisory, so users should verify the patch availability and applicability from the official FoundationAgents sources or repository.

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/9/2026, 7:51:14 PM

Last updated: 4/10/2026, 8:15:32 AM

Views: 12

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