CVE-2026-5972
FoundationAgents MetaGPT terminal.py Terminal.run_command os command injection
- State
- Published
- Severity
- 6.9 Medium
- Published
- Apr 9, 2026
- Updated
- Apr 10, 2026
- Reserved
- Apr 9, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P | VulDB |
| 3.1 | 7.3 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | VulDB |
| 3.0 | 7.3 High | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | VulDB |
| 2.0 | 7.5 High | AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C | VulDB |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
MetaGPTFoundationAgents |
|
References
- VDB-356526 | FoundationAgents MetaGPT terminal.py Terminal.run_command os command injectionvdb-entrytechnical-description
- VDB-356526 | CTI Indicators (IOB, IOC, TTP, IOA)signaturepermissions-required
- Submit #791745 | FoundationAgents MetaGPT 0.8.1 OS Command Injection (CWE-78)third-party-advisory
- https://github.com/FoundationAgents/MetaGPT/issues/1929exploitissue-tracking
- https://github.com/paipeline/MetaGPT/commit/d04ffc8dc67903e8b327f78ec121df5e190ffc7bpatch
- https://github.com/FoundationAgents/MetaGPT/product
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.