CVE-2026-5972
MEDIUM 5.5CVSS 4.0FoundationAgents MetaGPT vulnerable to os command injection via the Terminal.run_command
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.
- Published
- 9 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Analyzed
- Weakness
- CWE-77
- Also known as
- GHSA-wp29-qmvj-frvpPYSEC-2026-2644
- Sources
- NVDJSONOSV GHSA-wp29-qmvj-frvpJSONOSV PYSEC-2026-2644JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@vuldb.com (Secondary) | CVSS 4.0 | MEDIUM 5.5 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | cna@vuldb.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | PyPA | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | cna@vuldb.com (Secondary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | deepwisdom | metagptcpe:2.3:a:deepwisdom:metagpt:*:*:*:*:*:*:*:* |
<= 0.8.1 | |
| OSV | PyPI | metagpt | < 0.8.2 | 0.8.2 |
References
- https://github.com/FoundationAgents/MetaGPT/ · Product, PACKAGE
- https://github.com/FoundationAgents/MetaGPT/issues/1929 · Exploit, Issue Tracking, WEB
- https://github.com/paipeline/MetaGPT/commit/d04ffc8dc67903e8b327f78ec121df5e190ffc7b · Patch, WEB
- https://vuldb.com/submit/791745 · Exploit, Third Party Advisory, VDB Entry, WEB
- https://vuldb.com/vuln/356526 · Third Party Advisory, VDB Entry, WEB
- https://vuldb.com/vuln/356526/cti · Permissions Required, VDB Entry, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-5972 · ADVISORY
- https://pypi.org/project/metagpt · PACKAGE
- https://github.com/advisories/GHSA-wp29-qmvj-frvp · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 9 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Apr 2026)