# CVE-2024-23750: Code execution in metagpt

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.96%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-01-22T00:00:00.000Z
- Modified: 2026-06-17T07:13:31.440Z
- Also known as: GHSA-g7ph-8423-pf4j, PYSEC-2024-9
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## Description

MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell metacharacters to subprocess.Popen.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- metagpt (PyPI): up to 0.6.6; before 0.6.5
- deepwisdom metagpt: up to 0.6.4

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/geekan/MetaGPT/issues/731> (exploit, issue-tracking, report, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-23750> (advisory)
- <https://github.com/geekan/MetaGPT> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/metagpt/PYSEC-2024-9.yaml> (web)
- <https://github.com/advisories/GHSA-g7ph-8423-pf4j> (advisory)

## Sources

- CVE List: [CVE-2024-23750](https://www.cve.org/CVERecord?id=CVE-2024-23750), CVE Terms of Use, modified 2025-06-20
- GitHub Advisory Database: [GHSA-g7ph-8423-pf4j](https://github.com/advisories/GHSA-g7ph-8423-pf4j), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2024-23750](https://nvd.nist.gov/vuln/detail/CVE-2024-23750), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-9](https://osv.dev/vulnerability/PYSEC-2024-9), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-23750 · Whole record: https://cve.day/CVE-2024-23750.json · Rebuilt by cve.day 2026-11-25T22:58:36.260Z
