PT-2026-31707 · Foundation Agents · Metagpt

·

CVE-2026-5972

·

Published

2026-04-09

·

Updated

2026-07-13

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions FoundationAgents MetaGPT versions up to 0.8.1
Description A flaw exists in the Terminal.run command function within the metagpt/tools/libs/terminal.py library. This allows for os command injection, potentially enabling remote exploitation. The exploit has been publicly disclosed.
Recommendations Apply the patch d04ffc8dc67903e8b327f78ec121df5e190ffc7b.

Exploit

Fix

OS Command Injection

Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-5972
GHSA-WP29-QMVJ-FRVP
PYSEC-2026-2644

Affected Products

Metagpt