{"id":"CVE-2026-5974","aliases":["GHSA-fcc8-4q7h-wvwc","PYSEC-2026-2639"],"url":"https://o3.security/vulnerability/CVE-2026-5974","summary":"FoundationAgents MetaGPT terminal.py Bash.run os command injection","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.","published":"2026-04-09T19:30:15.216Z","modified":"2026-08-07T11:31:12.730743138Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"metagpt","fixedVersion":null}],"fix":{"url":"https://github.com/FoundationAgents/MetaGPT/pull/1940","label":"FoundationAgents/MetaGPT#1940"},"references":[{"type":"WEB","url":"https://github.com/FoundationAgents/MetaGPT/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5974.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5974"},{"type":"ADVISORY","url":"https://vuldb.com/submit/791758"},{"type":"ADVISORY","url":"https://vuldb.com/vuln/356528"},{"type":"REPORT","url":"https://github.com/FoundationAgents/MetaGPT/issues/1931"},{"type":"REPORT","url":"https://vuldb.com/vuln/356528/cti"},{"type":"FIX","url":"https://github.com/FoundationAgents/MetaGPT/pull/1940"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:31:12.730743138Z"}}