Advisory

GHSA-wp29-qmvj-frvp

Also known as: CVE-2026-5972, PYSEC-2026-2644

Summary

FoundationAgents MetaGPT vulnerable to os command injection via the Terminal.run_command

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-09 21:31 UTC
Modified
2026-07-13 16:42 UTC

Affected packages and fixes

metagpt

PyPI · All systems

Affected

  • introduced 0, fixed 0.8.2 (ecosystem)

Fixed versions

0.8.2

Fix

  • Fixed version 0.8.2
    pip install --upgrade metagpt==0.8.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences