foundationagents/metagpt · Security
FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/tools/libs/terminal.py
- GHSA ID
- GHSA-fcc8-4q7h-wvwc
- CVE ID
- CVE-2026-5974
- Severity
- medium
- Published
- Updated
- CVSS
- 7.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- CVSS v3
- 7.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- CVSS v4
- 6.9 · 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
Description
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.
CWEs
- CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-5974 ↗
- https://github.com/FoundationAgents/MetaGPT/issues/1931 ↗
- https://github.com/FoundationAgents/MetaGPT/pull/1940 ↗
- https://github.com/FoundationAgents/MetaGPT ↗
- https://vuldb.com/submit/791758 ↗
- https://vuldb.com/vuln/356528 ↗
- https://vuldb.com/vuln/356528/cti ↗
- https://github.com/advisories/GHSA-fcc8-4q7h-wvwc ↗