{"id":"CVE-2026-5974","published":"2026-04-09T19:30:15Z","modified":"2026-04-09T20:17:26Z","title":"FoundationAgents MetaGPT terminal.py Bash.run os command injection","vendor":"FoundationAgents","product":"MetaGPT","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:X/RL:X/RC:R","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02559,"percentile":0.85471,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://vuldb.com/vuln/356528","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/vuln/356528/cti","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/submit/791758","tags":["third-party-advisory"]},{"url":"https://github.com/FoundationAgents/MetaGPT/issues/1931","tags":["issue-tracking"]},{"url":"https://github.com/FoundationAgents/MetaGPT/pull/1940","tags":["issue-tracking","patch"]},{"url":"https://github.com/FoundationAgents/MetaGPT/","tags":["product"]}],"priority":{"score":22.2,"factors":[{"name":"EPSS percentile","points":17.09},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"foundationagents","affectedVersions":[{"vendor":"FoundationAgents","product":"MetaGPT","versions":["0.8.0","0.8.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-09T20:17:11.737124Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"metagpt","vulnerableRanges":["<=0.8.1"],"patched":[],"from":["GHSA-fcc8-4q7h-wvwc","PYSEC-2026-2639"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-21072","exploited":false,"provenance":"source"}}