CVE-2026-79407

Published Aug 31, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
A path traversal vulnerability in the SPO extension of MetaGPT 0.8.1 allows an attacker to read arbitrary files via the FILE_NAME value used by set_file_name() and load_meta_data() in metagpt/ext/spo/utils/load.py. The vulnerable code joins the attacker-controlled FILE_NAME value with the settings directory and opens the resulting path without validating that the resolved path remains within the intended directory.

Analysis

AI-generated

Technical impact

A path traversal flaw in the SPO extension of MetaGPT 0.8.1 permits an attacker to read files outside the intended settings directory. The code constructs a file path by combining an attacker‑supplied FILE_NAME value with the server’s configuration directory and then opens the resulting file without verifying that the resolved path remains inside that directory. If exploited, the adversary can access any file that the process can read, including configuration files, credentials, or other sensitive data, leading to disclosure of confidential information and potential further compromise of the host system.

Affected Systems

The vulnerability exists in MetaGPT 0.8.1, specifically within the SPO extension, where the set_file_name() and load_meta_data() functions in metagpt/ext/spo/utils/load.py are affected. No additional vendor or product versions are identified.

Risk and Exploitability

Because the code accepts a user‑controlled file name, an attacker who can trigger the load_meta_data() routine—such as through an API request or user interface—can craft a path like "../../../../etc/passwd" to read arbitrary files. The exploit does not require elevated privileges beyond those of the service process. The EPSS score is <1%, indicating a low likelihood of widespread exploitation, but the CVSS score of 7.5 reflects a high impact from the privilege level of the service. The vulnerability is not listed in the CISA KEV catalog. The ability to read any file the process can access poses a significant confidentiality risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a fixed version of MetaGPT that eliminates the path concatenation flaw
  • Implement file‑path validation or sanitization before calling set_file_name() to ensure the resolved path remains within the intended directory
  • Restrict the execution environment of MetaGPT, limiting its file system access to only the directories required for operation

Generated by OpenCVE AI on September 1, 2026 at 16:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Path Traversal in MetaGPT SPO Extension Exposes Arbitrary Files
Metrics ssvc

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

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

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

Type Values Removed Values Added
Title Path Traversal in MetaGPT SPO Extension Exposes Arbitrary Files
Weaknesses CWE-22
Type Values Removed Values Added
Description A path traversal vulnerability in the SPO extension of MetaGPT 0.8.1 allows an attacker to read arbitrary files via the FILE_NAME value used by set_file_name() and load_meta_data() in metagpt/ext/spo/utils/load.py. The vulnerable code joins the attacker-controlled FILE_NAME value with the settings directory and opens the resulting path without validating that the resolved path remains within the intended directory.
References
Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 1, 2026, 1:01 PM
Reserved
Aug 25, 2026, 12:00 AM
Status
Deferred
Published
Aug 31, 2026, 9:17 PM
Modified
Sep 8, 2026, 7:42 PM