{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-5972","id":"CVE-2026-5972","title":"FoundationAgents MetaGPT terminal.py Terminal.run_command os command injection","description":"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","descriptionLong":"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.","published":"2026-04-09T19:00:20.513Z","updated":"2026-10-28T02:30:27.060788330Z","reserved":"2026-04-09T12:04:27.184Z","status":"Analyzed","rejected":false,"assigner":"VulDB","metric":{"version":"4.0","score":6.9,"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","source":"VulDB"},"metrics":[{"version":"4.0","score":6.9,"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","source":"VulDB"},{"version":"4.0","score":5.5,"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"vuldb.com"},{"version":"4.0","score":null,"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":"unrated","source":"OSV"},{"version":"4.0","score":null,"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":"high","source":"GitHub"},{"version":"3.1","score":7.3,"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","rating":"high","source":"VulDB"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"vuldb.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"GitHub"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"OSV"},{"version":"3.0","score":7.3,"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","rating":"high","source":"VulDB"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C","rating":"high","source":"VulDB"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"vuldb.com"}],"rating":"medium","products":["FoundationAgents MetaGPT"],"affectedProducts":[{"vendor":"FoundationAgents","product":"MetaGPT","defaultStatus":null,"versions":[{"version":"0.8.0","status":"affected"},{"version":"0.8.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"metagpt","purl":"pkg:pypi/metagpt","ranges":["<0.8.2"],"fixed":["0.8.2"],"advisory":"GHSA-wp29-qmvj-frvp"}],"cwes":["CWE-78","CWE-77"],"aliases":["GHSA-wp29-qmvj-frvp","PYSEC-2026-2644"],"references":[{"url":"https://vuldb.com/vuln/356526","tags":["vdb-entry","technical-description","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://vuldb.com/vuln/356526/cti","tags":["signature","permissions-required","Permissions Required","VDB Entry","report","web"]},{"url":"https://vuldb.com/submit/791745","tags":["third-party-advisory","Exploit","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://github.com/FoundationAgents/MetaGPT/issues/1929","tags":["exploit","issue-tracking","Exploit","Issue Tracking","report","web"]},{"url":"https://github.com/paipeline/MetaGPT/commit/d04ffc8dc67903e8b327f78ec121df5e190ffc7b","tags":["patch","Patch","fix","web"]},{"url":"https://github.com/FoundationAgents/MetaGPT/","tags":["product","Product","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5972.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5972","tags":["advisory"]},{"url":"https://github.com/FoundationAgents/MetaGPT","tags":["package"]},{"url":"https://pypi.org/project/metagpt","tags":["package"]},{"url":"https://github.com/advisories/GHSA-wp29-qmvj-frvp","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.02659,"epssPercentile":0.85988,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-5972","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5972","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-5972","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wp29-qmvj-frvp","ok":true,"note":"GHSA-wp29-qmvj-frvp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-5972","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}