CVE-2026-5972: OS Command Injection in FoundationAgents MetaGPT
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 Analysis
Technical Summary
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.
CVE-2026-5972: OS Command Injection in FoundationAgents 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.