GitHub Advisoryadvisory · PyPI
GHSA-fcc8-4q7h-wvwc FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/tools/libs/terminal.py
MEDIUM
Official page ↗
- Aliases
- CVE-2026-5974
- Ecosystem
- PyPI
- Packages
- metagpt
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Weaknesses
- CWE-77
- Reviewed
- 2026-04-10
Affected packages
• PyPI metagpt: <= 0.8.1 (no fix yet)
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.
Related
Alias · CVE (1)
- CVE-2026-5974 A vulnerability was determined in FoundationAgents MetaGPT up to 0.8.1. vulnerability
Weakness · CWE (1)
- CWE-77 Improper Neutralization of Special Elements used in a Command weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-5974 advisory
- https://github.com/FoundationAgents/MetaGPT/issues/1931 web
- https://github.com/FoundationAgents/MetaGPT/pull/1940 web
- https://github.com/FoundationAgents/MetaGPT package
- https://vuldb.com/submit/791758 web
- https://vuldb.com/vuln/356528 web
- https://vuldb.com/vuln/356528/cti web