{"id":"CVE-2024-23750","aliases":["EUVD-2024-0100","GHSA-g7ph-8423-pf4j","PYSEC-2024-9"],"status":"published","title":"Code execution in metagpt","description":"MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell metacharacters to subprocess.Popen.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.0096,"percentile":0.62001,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2024-01-22T00:00:00Z","modified":"2026-10-28T02:30:26Z","fixes":[{"ecosystem":"PyPI","package":"metagpt","fixed_in":["0.6.5"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"metagpt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.6.6"}]}]},{"source":"osv","ecosystem":"PyPI","package":"metagpt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.6.6"}]}],"versions":["0.1","0.3.0","0.4.0","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6"]},{"source":"osv","ecosystem":"PyPI","package":"metagpt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.5"}]}],"versions":["0.1","0.3.0","0.4.0","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4"]}],"products":[{"vendor":"deepwisdom","product":"metagpt"}],"references":[{"url":"https://github.com/geekan/MetaGPT/issues/731","tags":["x_transferred","Exploit","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23750","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/metagpt/PYSEC-2024-9.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-g7ph-8423-pf4j","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/23xxx/CVE-2024-23750.json","tags":["advisory"]},{"url":"https://github.com/geekan/MetaGPT","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-23750","description":"MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell metacharacters to subprocess.Popen.","status":"published","published":"2024-01-22T00:00:00Z","modified":"2025-06-20T18:42:14.289Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:34:05.444281Z"}],"euvd":[{"id":"EUVD-2024-0100","description":"MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell metacharacters to subprocess.Popen.","status":"published","published":"2024-01-22T00:00:00Z","modified":"2025-06-20T18:42:14Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T20:32:18.601981Z"}],"ghsa":[{"id":"GHSA-g7ph-8423-pf4j","title":"Code execution in metagpt","description":"MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell metacharacters to subprocess.Popen.","status":"published","published":"2024-01-22T03:30:26Z","modified":"2024-01-29T19:11:17Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:37:33.019154Z"}],"nvd":[{"id":"CVE-2024-23750","description":"MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell metacharacters to subprocess.Popen.","status":"published","published":"2024-01-22T01:15:08.507Z","modified":"2026-06-17T07:13:31.44Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:09:32.147098Z"}],"osv":[{"id":"CVE-2024-23750","description":"MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell metacharacters to subprocess.Popen.","status":"published","published":"2024-01-22T00:00:00Z","modified":"2026-10-28T02:30:26.487876587Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:38.897406Z"},{"id":"GHSA-g7ph-8423-pf4j","title":"Code execution in metagpt","description":"MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell metacharacters to subprocess.Popen.","status":"published","published":"2024-01-22T03:30:26Z","modified":"2024-02-16T08:22:47.281306Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:47.472172Z"},{"id":"PYSEC-2024-9","description":"MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell metacharacters to subprocess.Popen.","status":"published","published":"2024-01-22T01:15:00Z","modified":"2026-06-10T17:01:25.028247388Z","updated_at":"2026-11-02T15:52:54.242332Z"}]}}
