CVE-2026-5972
published medium CVSS 4.0 · 6.9FoundationAgents MetaGPT terminal.py Terminal.run_command os command injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| FoundationAgents | — | MetaGPT0.8.0 · 0.8.1 | Affected | Not stated | VulDB |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.3 | high | VulDB · cna | 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 | — |
| 3.0 | 7.3 | high | VulDB · cna | 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 | — |
| 2.0 | 7.5 | high | VulDB · cna | AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| FoundationAgents | MetaGPT | 0.8.0 (affected)0.8.1 (affected) | VulDB · cna |
Weaknesses
2- CWE-78 OS Command Injection
- CWE-77 Command Injection
References
6- https://github.com/FoundationAgents/MetaGPT/
- https://github.com/FoundationAgents/MetaGPT/issues/1929
- https://github.com/paipeline/MetaGPT/commit/d04ffc8dc67903e8b327f78ec121df5e190ffc7b
- Submit #791745 | FoundationAgents MetaGPT 0.8.1 OS Command Injection (CWE-78) https://vuldb.com/submit/791745
- VDB-356526 | FoundationAgents MetaGPT terminal.py Terminal.run_command os command injection https://vuldb.com/vuln/356526
- VDB-356526 | CTI Indicators (IOB, IOC, TTP, IOA) https://vuldb.com/vuln/356526/cti
Provider assertions
2VulDB · cna
FoundationAgents MetaGPT terminal.py Terminal.run_command os command injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d5d299265a10a312a5bdd503e9cef9f2baa7d92e5b979ab6214d62ba615a9fa6
- Ingested
- 23 Sep 2026, 09:23:35 UTC
- Source record
- Official CVE record