ZeroHour

CVE-2026-79407

niche

Path traversal in MetaGPT 0.8.1 SPO extension allows arbitrary file read

CVSS 3.1
7.5 high
EPSS
<1%p31
Published
()
Modified
AI analysis

MetaGPT 0.8.1 contains a path traversal flaw (CWE-22) in the SPO extension, in metagpt/ext/spo/utils/load.py, where set_file_name() and load_meta_data() join an attacker-controlled FILE_NAME value with the settings directory and open the resulting path without verifying it stays within the intended directory. By supplying a crafted FILE_NAME containing traversal sequences, an attacker can make the application read files outside the settings directory, such as configuration files, credentials, or other sensitive data on the host. The CVSS vector (AV:N/AC:L/PR:N/UI:N, C:H) indicates the flaw is exploitable over a network without authentication or user interaction, with high confidentiality impact but no integrity or availability impact. Anyone running MetaGPT 0.8.1 with the SPO extension loaded, particularly in an application or service that passes untrusted FILE_NAME input to load_meta_data(), is affected. No public proof-of-concept is known, the issue is not in CISA KEV, and EPSS currently estimates only about a 0.4% chance of exploitation in the next 30 days.

What to do: If you run MetaGPT 0.8.1 with the SPO extension, upgrade to a patched release when one is published (the fixed version is not stated in the available data) and, as an interim mitigation, reject or sanitize FILE_NAME values containing path separators or traversal sequences. Audit whether any application or service exposes set_file_name()/load_meta_data() to untrusted input, and consider enforcing that the resolved path remains within the settings directory; given the lack of a public PoC this can be prioritized accordingly, but monitor for updated advisories and patched releases.

Affected
MetaGPT (open-source project) MetaGPT SPO extension (metagpt/ext/spo/utils/load.py)0.8.1
Estimated exposure
nichelikely hundreds to low thousands of deployments at most (specialized extension of a popular open-source framework) — MetaGPT is a widely used open-source multi-agent framework, but the affected SPO prompt-optimization component is a niche part of it that is typically invoked in local or developer-controlled workflows rather than deployed as…

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

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.

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

In the news

No ingested article mentions this CVE yet.