ZeroHour

CVE-2026-79408

moderate

OS Command Injection in MetaGPT 0.8.1 RepoParser

CVSS 3.1
9.8 critical
EPSS
1%p66
Published
()
Modified
AI analysis

MetaGPT 0.8.1 contains an OS command injection flaw (CWE-78) in the path argument of RepoParser.rebuild_class_views() in metagpt/repo_parser.py. An attacker who can influence the value passed as path to this function can have arbitrary operating system commands executed on the host running MetaGPT. Per its CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N), the flaw is rated as exploitable over the network without authentication or user interaction, yielding high impact on confidentiality, integrity, and availability. Users running MetaGPT 0.8.1 are affected, particularly those processing attacker-supplied repository paths or integrating the repo parser into automated or network-reachable workflows. No public proof-of-concept, KEV listing, or confirmed exploitation has been reported; EPSS currently estimates a 1.2% probability of exploitation within 30 days.

What to do: Upgrade MetaGPT from 0.8.1 to a patched release as soon as one is published and monitor the upstream project's advisories for the fixed version. Until then, avoid passing untrusted or user-controlled values as the path argument to RepoParser.rebuild_class_views(), validate/sanitize that input, and run MetaGPT on untrusted repositories only in sandboxed environments. Audit integrations, scripts, and CI pipelines that invoke metagpt/repo_parser.py with external input to confirm nothing network-reachable feeds attacker-controlled paths into it.

Affected
MetaGPT (open-source project) MetaGPT0.8.1
Estimated exposure
moderate~tens of thousands of installations at most (developer tooling, mostly local rather than internet-exposed) — MetaGPT is a widely starred open-source LLM-agent framework (roughly 45k GitHub stars as a popularity proxy), suggesting a user base in the tens of thousands, but it is predominantly run locally or in CI by developers rather than deployed…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

An OS command injection vulnerability in MetaGPT 0.8.1 allows an attacker to execute arbitrary commands via the path argument of RepoParser.rebuild_class_views() in metagpt/repo_parser.py.

Weakness
CWE-78
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.