{"id":"CVE-2026-5972","aliases":["CVE-2026-5972","GHSA-wp29-qmvj-frvp","PYSEC-2026-2644"],"related":[],"kind":"vulnerability","state":"published","title":"FoundationAgents MetaGPT terminal.py Terminal.run_command os command injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad ha sido encontrada en FoundationAgents MetaGPT hasta 0.8.1. Este problema afecta a la función Terminal.run_command en la biblioteca metagpt/tools/libs/terminal.py. La manipulación conduce a inyección de comandos del sistema operativo. La explotación remota del ataque es posible. El exploit ha sido divulgado al público y puede ser utilizado. El identificador del parche es d04ffc8dc67903e8b327f78ec121df5e190ffc7b. Aplicar un parche es la acción recomendada para solucionar este problema.","source":"nvd"}],"published":"2026-04-09T19:00:20.513Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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/E:P","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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/E:P","score":6.9,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS: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","score":7.3,"rating":"HIGH"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C","score":7.3,"rating":"HIGH"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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/E:P","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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/E:P"}],"cwes":["CWE-77","CWE-78"],"affected":[{"ranges":[{"version":"0.8.0","status":"affected"},{"version":"0.8.1","status":"affected"}],"vendor":"FoundationAgents","product":"MetaGPT","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.8.2"}],"ecosystem":"PyPI","package":"metagpt","purl":"pkg:pypi/metagpt","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"0.8.1"}],"vendor":"deepwisdom","product":"metagpt","cpe":"cpe:2.3:a:deepwisdom:metagpt:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.8.2"}],"ecosystem":"PyPI","package":"metagpt","purl":"pkg:pypi/metagpt","source":"pysec"}],"references":[{"url":"https://vuldb.com/vuln/356526","tags":["technical-description","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/vuln/356526/cti","tags":["permissions-required","signature","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/submit/791745","tags":["exploit","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/FoundationAgents/MetaGPT/issues/1929","tags":["exploit","issue-tracking","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/paipeline/MetaGPT/commit/d04ffc8dc67903e8b327f78ec121df5e190ffc7b","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/FoundationAgents/MetaGPT/","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5972","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/FoundationAgents/MetaGPT","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/metagpt","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-wp29-qmvj-frvp","tags":["advisory"],"sources":["pysec"]}],"credits":["Eric-c (VulDB User)"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-04-10T14:13:26.110Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-5972","url":"https://www.cve.org/CVERecord?id=CVE-2026-5972","licence":"CVE Terms of Use","modified":"2026-04-10T14:13:32.555Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wp29-qmvj-frvp","url":"https://github.com/advisories/GHSA-wp29-qmvj-frvp","licence":"CC-BY-4.0","modified":"2026-07-13T16:42:47.574Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-5972","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5972","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2644","url":"https://osv.dev/vulnerability/PYSEC-2026-2644","licence":"CC-BY-4.0","modified":"2026-07-13T16:31:50.023Z"}],"updatedAt":"2026-11-25T22:59:18.421Z","epss":{"score":0.02717,"percentile":0.86443,"date":"2026-12-02T12:00:21.000Z"}}