{"cve":"CVE-2026-5974","nvd":{"published":"2026-04-09T20:16:29.347","modified":"2026-10-26T21:10:00.170","status":"Analyzed","description":"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.","cvss_v4":{"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","score":6.9},"cvss_v3":{"version":"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},"cwes":["CWE-77","CWE-78"],"references":["https://github.com/FoundationAgents/MetaGPT/","https://github.com/FoundationAgents/MetaGPT/issues/1931","https://github.com/FoundationAgents/MetaGPT/pull/1940","https://vuldb.com/submit/791758","https://vuldb.com/vuln/356528"],"products":["deepwisdom:metagpt"],"source":"nvd","synced_at":"2026-10-26T21:38:48.864438205+00:00"},"epss":{"cve":"CVE-2026-5974","score":0.02464,"percentile":0.84359,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-fcc8-4q7h-wvwc","url":"https://osv.dev/vulnerability/GHSA-fcc8-4q7h-wvwc","summary":"FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/tools/libs/terminal.py","modified":"2026-07-13T16:42:38.662345271Z","packages":[{"ecosystem":"PyPI","name":"metagpt","purl":"pkg:pypi/metagpt","ranges":["<=0.8.1"],"fixed":[]}]},{"id":"PYSEC-2026-2639","url":"https://osv.dev/vulnerability/PYSEC-2026-2639","summary":"FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/tools/libs/terminal.py","modified":"2026-07-13T16:32:14.882070985Z","packages":[{"ecosystem":"PyPI","name":"metagpt","purl":"pkg:pypi/metagpt","ranges":["<=0.8.1"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}