PoC Monitor
← All CVEs
CVE-2026-5972published 9 Apr 2026 19:00 UTCData: JSON · API

FoundationAgents MetaGPT

FoundationAgents MetaGPT terminal.py Terminal.run_command os command injection

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.8critical · scored by NVD · CWE-78
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

FoundationAgents MetaGPT
  • 0.8.0
  • 0.8.1
metagpt (PyPI)
  • < 0.8.2

Fixed in 0.8.2

from GitHub Security Advisory GHSA-wp29-qmvj-frvp

Mitigation

Upgrade metagpt to 0.8.2 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published9 Apr 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
CVE record (tagged exploit)https://github.com/FoundationAgents/MetaGPT/issues/1929unknown14 Nov 2026