Medium
FoundationAgents MetaGPT terminal.py Bash.run os command injection
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-5974
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 15:03 UTC · Revision 1
Source evidence
FoundationAgents MetaGPT terminal.py Bash.run os command injection
core-osv · Original sourcePublished 9 Apr 2026, 19:30 UTC
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.
osv:CVE-2026-5974
Complete source record
{
"id": "1354d55a6ee6aded2465e79e572164bc4c8baf24d0eea9fc03cee6b5828f02e1",
"url": "https://osv.dev/vulnerability/CVE-2026-5974",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "FoundationAgents MetaGPT terminal.py Bash.run os command injection",
"summary": "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.",
"evidence": "osv:CVE-2026-5974",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-5974",
"aliases": [
"CVE-2026-5974",
"GHSA-fcc8-4q7h-wvwc",
"PYSEC-2026-2639"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/foundationagents/metagpt",
"type": "GIT",
"events": [
{
"introduced": "feb2d30364e68cd74193d8f7715c3b90fafd02ec"
},
{
"last_affected": "c036574507e7616c02512e7c8ad88dd847783afa"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0.8.0"
},
{
"last_affected": "0.8.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "0.8.1"
},
{
"last_affected": "0.8.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"cpe": "cpe:2.3:a:deepwisdom:metagpt:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.8.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"0.8.0",
"0.8.1",
"v0.8.1",
"v0.8.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-5974.json"
}
}
],
"modified": "2026-10-28T02:30:36.580498266Z",
"provider": "osv",
"references": [
"https://github.com/FoundationAgents/MetaGPT/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5974.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-5974",
"https://vuldb.com/submit/791758",
"https://vuldb.com/vuln/356528",
"https://github.com/FoundationAgents/MetaGPT/issues/1931",
"https://vuldb.com/vuln/356528/cti",
"https://github.com/FoundationAgents/MetaGPT/pull/1940"
],
"provider_metadata": {
"cwe_ids": [
"CWE-77",
"CWE-78"
],
"cna_assigner": "VulDB",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5974.json"
}
},
"related_cves": [
{
"value": "CVE-2026-5974",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 503935,
"published_at": "2026-04-09T19:30:15.216+00:00"
}