CVE-2026-5974: FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/tools/libs/terminal.py
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.
Published Apr 9, 2026 · Updated Apr 10, 2026
Affected packages
metagpt
- Ecosystem
- PyPI
- Affected
- <= 0.8.1
- Fixed in
- No patched version yet
- Check
pip show metagpt
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-5974
- https://github.com/FoundationAgents/MetaGPT/issues/1931
- https://github.com/FoundationAgents/MetaGPT/pull/1940
- https://github.com/FoundationAgents/MetaGPT
- https://vuldb.com/submit/791758
- https://vuldb.com/vuln/356528
- https://vuldb.com/vuln/356528/cti
- https://github.com/advisories/GHSA-fcc8-4q7h-wvwc
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-10566
FoundationAgents MetaGPT: Deserialization through flawed argument mapping via Message.check_instruct_content()
low5.3No fixJun 2, 2026CVE-2026-6109
MetaGPT has an eval injection via a cross-site request forgery attack
low4.3No fixApr 12, 2026CVE-2026-6110
MetaGPT has an eval injection in metagpt/strategy/tot.py
medium7.3No fixApr 12, 2026CVE-2026-6111
MetaGPT affected by server-side request forgery in metagpt/utils/common.py
low6.3No fixApr 12, 2026CVE-2026-5970
MetaGPT has an Injection issue
medium7.3No fixApr 9, 2026CVE-2026-5971
FoundationAgents MetaGPT vulnerable to eval injection
medium7.3No fixApr 9, 2026
