{"id":"CVE-2026-5974","aliases":["CVE-2026-5974","GHSA-fcc8-4q7h-wvwc","PYSEC-2026-2639"],"related":[],"kind":"vulnerability","state":"published","title":"FoundationAgents MetaGPT terminal.py Bash.run os command injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Se determinó una vulnerabilidad en FoundationAgents MetaGPT hasta la versión 0.8.1. El elemento afectado es la función Bash.run en la biblioteca metagpt/tools/libs/terminal.py. Esta manipulación provoca inyección de comandos. El ataque puede llevarse a cabo de forma remota. Se informó al proyecto del problema con antelación a través de una solicitud de extracción, pero aún no ha reaccionado.","source":"nvd"}],"published":"2026-04-09T19:30:15.216Z","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:X","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:X","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:X/RL:X/RC:R","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:X/RL:X/RC:R","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:ND/RL:ND/RC:UR","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","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"}],"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","lastAffected":"0.8.1"}],"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","lastAffected":"0.8.1"}],"ecosystem":"PyPI","package":"metagpt","purl":"pkg:pypi/metagpt","source":"pysec"}],"references":[{"url":"https://vuldb.com/vuln/356528","tags":["technical-description","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/vuln/356528/cti","tags":["permissions-required","signature","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/submit/791758","tags":["exploit","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/FoundationAgents/MetaGPT/issues/1931","tags":["exploit","issue-tracking","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/FoundationAgents/MetaGPT/pull/1940","tags":["issue-tracking","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-5974","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-fcc8-4q7h-wvwc","tags":["advisory"],"sources":["pysec"]}],"credits":["Eric-d (VulDB User)","VulDB CNA Team"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-04-09T20:17:11.737Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-5974","url":"https://www.cve.org/CVERecord?id=CVE-2026-5974","licence":"CVE Terms of Use","modified":"2026-04-09T20:17:26.123Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fcc8-4q7h-wvwc","url":"https://github.com/advisories/GHSA-fcc8-4q7h-wvwc","licence":"CC-BY-4.0","modified":"2026-07-13T16:42:38.662Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-5974","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5974","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2639","url":"https://osv.dev/vulnerability/PYSEC-2026-2639","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:14.882Z"}],"updatedAt":"2026-11-25T22:59:18.422Z","epss":{"score":0.02616,"percentile":0.85865,"date":"2026-12-01T12:00:22.000Z"}}