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.
Published: 2026-08-31
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An OS command injection flaw exists in MetaGPT 0.8.1. The vulnerability lies in the function RepoParser.rebuild_class_views() where the path argument is passed directly to the operating system command executor. This allows an attacker who can influence the path value to run arbitrary shell commands on the host that runs MetaGPT. Successful exploitation grants full control over the underlying operating system, exposing the attacker to data theft, system compromise, and persistence mechanisms. The weakness is identified by CWE-78, OS Command Injection.

Affected Systems

The affected product is MetaGPT version 0.8.1. No specific vendor or platform details are listed, but the issue impacts any host, container, or server that runs this version of MetaGPT and can supply a path argument to RepoParser.rebuild_class_views().

Risk and Exploitability

The CVSS score is not publicly listed, but OS command injection typically scores 9.x for availability, confidentiality, and integrity. The EPSS score is not available, and the vulnerability is not presently in the CISA KEV catalog. Nonetheless, because the flaw is exercised through user-controlled input and the path can be coerced by external users or API callers, exploitation could be carried out remotely if the MetaGPT instance is exposed over a network. The lack of a public exploit does not diminish the inherent risk; any system running the vulnerable code is at high risk of compromise if input is not validated.

Generated by OpenCVE AI on August 31, 2026 at 21:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to MetaGPT 0.9.0 or later where the command injection vulnerability has been patched
  • If an upgrade is not immediately possible, restrict the use of RepoParser.rebuild_class_views() to trusted internal callers and sanitize or whitelist the path argument to eliminate shell metacharacters
  • Disable or tightly control any external API endpoints that can supply the path value, and monitor logs for anomalous command execution attempts

Generated by OpenCVE AI on August 31, 2026 at 21:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 31 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
Title OS Command Injection via path Argument in MetaGPT 0.8.1
Weaknesses CWE-78

Mon, 31 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
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.
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-08-31T20:36:51.581Z

Reserved: 2026-08-25T00:00:00.000Z

Link: CVE-2026-79408

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-31T21:17:49.017

Modified: 2026-08-31T21:17:49.017

Link: CVE-2026-79408

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-31T21:30:05Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')