CVE-2026-5974 MEDIUM

CVE-2026-5974: FoundationAgents MetaGPT terminal.py Bash.run os command injection

Vendor Foundationagents
Product MetaGPT
Weakness CWE-78
Published April 9, 2026
Last update April 9, 2026

CVSS base score

6.9/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X

What the vulnerability does

01Description

A vulnerability was determined in FoundationAgents MetaGPT up to 0.8.1. The affected element is the function Bash.run in the library metagpt/tools/libs/terminal.py. This manipulation causes os command injection. The attack is possible to be carried out remotely. The project was informed of the problem early through a pull request but has not reacted yet.

Key dates

02Disclosure timeline

April 9, 2026 CVE published
April 9, 2026 Record updated