Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify network-exposed MetaGPT SPO endpoint
-
DeliveryCraft FILE_NAME with path traversal sequences
-
ExploitSubmit payload to load_meta_data() call
-
ExecutionServer resolves path outside settings directory
-
ImpactArbitrary file contents returned to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that MetaGPT version 0.8.1 is deployed with its SPO extension active AND that the attacker can supply an arbitrary FILE_NAME string to an endpoint invoking set_file_name() or load_meta_data() in metagpt/ext/spo/utils/load.py. The CVSS vector (PR:N, UI:N, AV:N) asserts no authentication and no user interaction are required once network access exists. The primary limiting condition is deployment context: MetaGPT is a developer and research framework not typically exposed as a public-facing service; environments where MetaGPT agents are wrapped in an HTTP API or multi-tenant service that forwards FILE_NAME from untrusted users represent the realistic high-risk scenario. Exploitation is limited by the attacker needing read permissions on the target file at the OS level - files readable only by root (e.g., /etc/shadow) may not be exfiltrated if MetaGPT runs as a non-privileged user. |
| Impact | The CVSS 3.1 score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) indicates unauthenticated remote exploitation with high confidentiality impact and low attack complexity, which would be severe if the SPO extension is reachable over a network. However, MetaGPT is primarily a developer and research framework - not designed as an internet-facing service - so real-world exposure is substantially reduced compared to a web server or enterprise appliance. No EPSS score or KEV listing is available in the provided data, limiting probabilistic exploitation assessment. The GitHub PoC reference elevates practical risk for any deployment that does expose the SPO extension to untrusted callers. The combination of low attack complexity, high confidentiality impact, and a public PoC makes this a real priority for any team running MetaGPT with network-accessible SPO endpoints, but the niche deployment footprint limits aggregate risk. The CVSS PR:N rating should be verified against the actual MetaGPT API surface - if FILE_NAME is only settable by authenticated users or local operators, the effective privilege requirement is higher than stated. |
| Exploit ScenarioDerived | An attacker with network access to a MetaGPT deployment exposing the SPO extension submits a FILE_NAME value such as '../../../../etc/shadow' to an endpoint that invokes load_meta_data(); the function joins this value with the settings directory without sanitization and returns the contents of the target file. A public PoC documenting this exact technique is available on GitHub, reducing the skill required to execute the attack. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 01, 2026
Path traversal in MetaGPT 0.8.1's SPO extension exposes arbitrary server-side files to unauthenticated remote attackers via a crafted FILE_NAME parameter. The flaw in metagpt/ext/spo/utils/load.py allows set_file_name() and load_meta_data() to open attacker-controlled paths - including traversal sequences - without confirming the resolved path remains within the intended settings directory. A public proof-of-concept writeup exists on GitHub; no active exploitation is confirmed in CISA KEV at time of analysis.
RemediationAI
No vendor-released patch has been identified at time of analysis. As an immediate compensating control, restrict network access to any MetaGPT deployment whose SPO extension is reachable by untrusted users - a network-layer firewall rule or service binding to localhost will prevent remote exploitation entirely. If FILE_NAME values can originate from external input, apply server-side path sanitization: resolve the full path with os.path.realpath() before opening the file and reject any result that does not share the expected settings-directory prefix; note this adds a synchronous filesystem call that may affect performance under load. Disabling or removing the SPO extension eliminates the attack surface with no functional side effects if that feature is unused. Monitor the MetaGPT GitHub repository for a patched release and apply it as soon as available. Reference the PoC writeup at https://github.com/REYu6/Metagpt-vul/blob/main/CVE-2-MetaGPT-path-traversal.md to understand the exact code paths for manual patching if needed.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MetaGPT is an open-source multi-agent LLM orchestration framework; version 0.8.1 includes the SPO (Self-Prompt Optimization) extension whose utility module at metagpt/ext/spo/utils/load.py constructs file paths by joining an attacker-supplied FILE_NAME string with the settings directory using standard Python path operations. Because the code opens the resulting path without calling realpath() or verifying the canonical path prefix, an input such as '../../../../etc/passwd' escapes the intended directory boundary. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) precisely captures this root cause: the absence of post-join canonicalization and boundary enforcement. The CPE string in the source data (cpe:2.3:a:n/a:n/a) is a placeholder and provides no version-range information.
Know when N A gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Agrees with provided vector: network-reachable FILE_NAME input, no auth per CVSS PR:N, read-only impact means I:N/A:N.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
MetaGPT 0.8.1 contains a remote file access vulnerability in its SPO extension that permits unauthenticated attackers to extract sensitive server files through path traversal. Publicly available exploit code exists, creating immediate data disclosure risk for any organization running this version. The vulnerability requires no authentication or special privileges, making it a critical threat to data confidentiality.
No vendor-released patch identified at time of analysis. Implement the following interim mitigations: (1) Web Application Firewall rules to detect and block path traversal sequences in FILE_NAME parameters; (2) Network segmentation to restrict access to MetaGPT 0.8.1 instances to authorized internal clients only; (3) Enhanced audit logging and monitoring of file access operations to detect exploitation attempts; (4) Regular review of application logs for suspicious file access patterns. Actively monitor MetaGPT repositories and vendor security announcements for patch release notifications.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-68878
GHSA-2p3m-whr7-9m4w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB