CVE-2026-5972

published 9 Apr 2026 · updated 10 Apr 2026

FoundationAgents MetaGPT terminal.py Terminal.run_command os command injection

8.3HighCVSS 7.3EPSS 3%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 3%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
FoundationAgents=0.8.0, =0.8.1

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-5972 severity on Zeptric[![CVE-2026-5972](https://zeptric.io/badge/cve/CVE-2026-5972.svg)](https://zeptric.io/cve/CVE-2026-5972)