CVE-2026-5972: FoundationAgents MetaGPT · OS Command Injection
Affects FoundationAgents MetaGPTSource CVE Database V5
Public exploit available · CVSS 6.9 Medium.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 2.5% chance of exploitation in 30 days – higher than 85% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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:PExploitation evidence
Disclosed: evidence found.
CVE published 9 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
CVSS exploit maturity: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| FoundationAgentsMetaGPT | Affected
| Fixed in– |
PyPImetagptpkg:pypi/metagptOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch identified by commit d04ffc8dc67903e8b327f78ec121df5e190ffc7b is available and should be applied to affected MetaGPT versions to remediate this OS command injection vulnerability. No vendor advisory content was provided to indicate alternative mitigations or that no action is required. Therefore, applying the official patch is the recommended remediation.
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.
References
- vuldb.com/vuln/356526 (opens in a new tab)
- vuldb.com/vuln/356526/cti (opens in a new tab)
- vuldb.com/submit/791745 (opens in a new tab)
- github.com/FoundationAgents/MetaGPT/issues/1929 (opens in a new tab)
- github.com/paipeline/MetaGPT/commit/d04ffc8dc67903e8b327f78ec121df5e190ffc7b (opens in a new tab)
- github.com/FoundationAgents/MetaGPT/ (opens in a new tab)