HIGH7.3
PYSEC-2026-2639
FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/tools/libs/terminal.py
Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/metagpt
Introduced in:
0No fixed version published yet for metagpt (pip). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-5974[ADVISORY]
- https://github.com/FoundationAgents/MetaGPT/issues/1931[WEB]
- https://github.com/FoundationAgents/MetaGPT/pull/1940[WEB]
- https://github.com/FoundationAgents/MetaGPT[PACKAGE]
- https://vuldb.com/submit/791758[WEB]
- https://vuldb.com/vuln/356528[WEB]
- https://vuldb.com/vuln/356528/cti[WEB]
- https://pypi.org/project/metagpt[PACKAGE]
- https://github.com/advisories/GHSA-fcc8-4q7h-wvwc[ADVISORY]