Advisory

PYSEC-2026-2644

Also known as: CVE-2026-5972, GHSA-wp29-qmvj-frvp

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

High Basis: CVSS v3 score 7.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Dates

Published
2026-07-13 14:36 UTC
Modified
2026-07-13 16:31 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: PyPA Advisory Database · CC BY 4.0

Sources & licences