{"id":"CVE-2026-5972","published":"2026-04-09T19:00:20Z","modified":"2026-04-10T14:13:32Z","title":"FoundationAgents MetaGPT terminal.py Terminal.run_command os command injection","vendor":"FoundationAgents","product":"MetaGPT","tier":"tail","description":{"text":"A vulnerability has been found in FoundationAgents MetaGPT up to 0.8.1. This issue affects the function Terminal.run_command in the library metagpt/tools/libs/terminal.py. The manipulation leads to os command injection. Remote exploitation of the attack is possible. The exploit has been disclosed to the public and may be used. The identifier of the patch is d04ffc8dc67903e8b327f78ec121df5e190ffc7b. Applying a patch is the recommended action to fix this issue.","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:P/RL:O/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02659,"percentile":0.86051,"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/356526","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/vuln/356526/cti","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/submit/791745","tags":["third-party-advisory"]},{"url":"https://github.com/FoundationAgents/MetaGPT/issues/1929","tags":["exploit","issue-tracking"]},{"url":"https://github.com/paipeline/MetaGPT/commit/d04ffc8dc67903e8b327f78ec121df5e190ffc7b","tags":["patch"]},{"url":"https://github.com/FoundationAgents/MetaGPT/","tags":["product"]}],"priority":{"score":27.3,"factors":[{"name":"EPSS percentile","points":17.21},{"name":"Public exploit code","points":5.0},{"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-10T14:13:26.110479Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"metagpt","vulnerableRanges":["<0.8.2"],"patched":["0.8.2"],"from":["GHSA-wp29-qmvj-frvp","PYSEC-2026-2644"],"provenance":"source"}],"summary":{"text":"The flaw is an OS command injection vulnerability in the Terminal.run_command function of the metagpt/tools/libs/terminal.py component in FoundationAgents MetaGPT, affecting versions up to 0.8.1. An attacker with network access and no authentication or user interaction can manipulate input to the function so that arbitrary operating system commands are executed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:37:48Z"},"euvd":{"id":"EUVD-2026-21049","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/FoundationAgents/MetaGPT/issues/1929"]}