Vulnerability · Published Apr 9, 2026 · Assigned by VulDB
CVE-2026-5974FoundationAgents MetaGPT terminal.py Bash.run os command injection
High 7.3
In plain English
A high-severity OS command injection in MetaGPT from FoundationAgents. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 85% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | metagpt | no fix listed | GHSA-fcc8-4q7h-wvwc |
| PyPI | metagpt | no fix listed | PYSEC-2026-2639 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| FoundationAgents | MetaGPT | 0.8.00.8.1 |
Weakness: CWE-78, CWE-77 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:X/RL:X/RC:R
References
- VDB-356528 | FoundationAgents MetaGPT terminal.py Bash.run os command injection vdb-entry, technical-description
- VDB-356528 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- Submit #791758 | FoundationAgents MetaGPT 0.8.1 OS Command Injection (CWE-78) third-party-advisory
- https://github.com/FoundationAgents/MetaGPT/issues/1931 issue-tracking
- https://github.com/FoundationAgents/MetaGPT/pull/1940 issue-tracking, patch
- https://github.com/FoundationAgents/MetaGPT/ product