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: 9.8 Critical
EPSS: 1.2% Low
KEV: No
Impact: Remote Command Execution
Action: Immediate Patch
AI Analysis

Impact

An OS command injection flaw exists in MetaGPT 0.8.1. The weakness lies in the function RepoParser.rebuild_class_views(), where the path argument is passed directly to the operating system without validation. This allows an attacker who can influence the path value to run arbitrary shell commands on the host running MetaGPT, giving full control over the underlying operating system.

Affected Systems

The vulnerable component is MetaGPT version 0.8.1. Any host, container, or server executing this version and allowing an external caller to provide a path argument to RepoParser.rebuild_class_views() is affected; the problem does not depend on vendor or platform, just on the presence of this specific code path.

Risk and Exploitability

The CVSS score of 9.8 indicates a remote code execution vulnerability that can be leveraged from a network or local user with sufficient privileges. The EPSS score of < 1% shows that exploitation attempts are low in the wild, but the presence of an unfiltered command execution path remains a high risk. The vulnerability is not in CISA’s KEV catalog, but any exposure of the vulnerable API or endpoint can be used to launch attacks remotely if the input can be controlled by an attacker.

Generated by OpenCVE AI on September 2, 2026 at 05:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade MetaGPT to version 0.9.0 or later where the injection issue is fixed
  • If upgrading is not immediately possible, restrict calls to RepoParser.rebuild_class_views() to trusted internal users and validate or whitelist the path argument to eliminate shell metacharacters
  • Limit external API exposure that can supply the path value and monitor logs for suspicious command execution

Generated by OpenCVE AI on September 2, 2026 at 05:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 05:30:00 +0000

Type Values Removed Values Added
Title OS Command Injection via path Argument in MetaGPT 0.8.1

Tue, 01 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 01 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Metagpt
Metagpt metagpt
Vendors & Products Metagpt
Metagpt metagpt

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

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-01T14:45:21.332Z

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

Link: CVE-2026-79408

cve-icon Vulnrichment

Updated: 2026-09-01T14:45:12.483Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-09-01T21:00:36.830

Link: CVE-2026-79408

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T05:15:05Z

Weaknesses
  • CWE-78

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