CVE-2026-5974: OS Command Injection in FoundationAgents MetaGPT
A vulnerability was determined in FoundationAgents MetaGPT up to 0.8.1. The affected element is the function Bash.run in the library metagpt/tools/libs/terminal.py. This manipulation causes os command injection. The attack is possible to be carried out remotely. The project was informed of the problem early through a pull request but has not reacted yet.
AI Analysis
Technical Summary
FoundationAgents MetaGPT versions 0.8.0 and 0.8.1 contain an OS command injection vulnerability in the Bash.run function of the metagpt/tools/libs/terminal.py library. This flaw allows remote attackers to inject and execute arbitrary OS commands due to insufficient input validation or sanitization in the command execution logic. The vulnerability was responsibly disclosed early, but no patch or official remediation has been released as of the publication date.
Potential Impact
Successful exploitation of this vulnerability could allow an unauthenticated remote attacker to execute arbitrary operating system commands on the affected system with the privileges of the MetaGPT process. This could lead to unauthorized system access, data compromise, or further system manipulation. However, no known exploits in the wild have been reported to date.
Mitigation Recommendations
As of the current information, no official patch or remediation is available from the vendor. Users should monitor the FoundationAgents MetaGPT project for updates or security advisories. Until a fix is released, avoid exposing vulnerable versions to untrusted networks or inputs that could trigger command injection. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
CVE-2026-5974: OS Command Injection in FoundationAgents MetaGPT
Description
A vulnerability was determined in FoundationAgents MetaGPT up to 0.8.1. The affected element is the function Bash.run in the library metagpt/tools/libs/terminal.py. This manipulation causes os command injection. The attack is possible to be carried out remotely. The project was informed of the problem early through a pull request but has not reacted yet.
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 Bash.run function of the metagpt/tools/libs/terminal.py library. This flaw allows remote attackers to inject and execute arbitrary OS commands due to insufficient input validation or sanitization in the command execution logic. The vulnerability was responsibly disclosed early, but no patch or official remediation has been released as of the publication date.
Potential Impact
Successful exploitation of this vulnerability could allow an unauthenticated remote attacker to execute arbitrary operating system commands on the affected system with the privileges of the MetaGPT process. This could lead to unauthorized system access, data compromise, or further system manipulation. However, no known exploits in the wild have been reported to date.
Mitigation Recommendations
As of the current information, no official patch or remediation is available from the vendor. Users should monitor the FoundationAgents MetaGPT project for updates or security advisories. Until a fix is released, avoid exposing vulnerable versions to untrusted networks or inputs that could trigger command injection. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulDB
- Date Reserved
- 2026-04-09T12:04:47.323Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d806d21cc7ad14da15a57d
Added to database: 4/9/2026, 8:06:42 PM
Last enriched: 4/9/2026, 8:21:17 PM
Last updated: 4/9/2026, 10:32:05 PM
Views: 5
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.