{"id":"PYSEC-2026-2639","summary":"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.","aliases":["CVE-2026-5974","GHSA-fcc8-4q7h-wvwc"],"modified":"2026-07-13T16:32:14.882070985Z","published":"2026-07-13T14:36:50.723725Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5974"},{"type":"WEB","url":"https://github.com/FoundationAgents/MetaGPT/issues/1931"},{"type":"WEB","url":"https://github.com/FoundationAgents/MetaGPT/pull/1940"},{"type":"PACKAGE","url":"https://github.com/FoundationAgents/MetaGPT"},{"type":"WEB","url":"https://vuldb.com/submit/791758"},{"type":"WEB","url":"https://vuldb.com/vuln/356528"},{"type":"WEB","url":"https://vuldb.com/vuln/356528/cti"},{"type":"PACKAGE","url":"https://pypi.org/project/metagpt"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fcc8-4q7h-wvwc"}],"affected":[{"package":{"name":"metagpt","ecosystem":"PyPI","purl":"pkg:pypi/metagpt"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.8.1"}]}],"versions":["0.1","0.3.0","0.4.0","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.6.10","0.6.11","0.6.12","0.6.13","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.6.7","0.6.8","0.6.9","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.6","0.7.7","0.8.0","0.8.1"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/metagpt/PYSEC-2026-2639.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"type":"CVSS_V4","score":"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"}]}