Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach agent-zero file-browser save endpoint
-
DeliverySubmit file path with ../ traversal sequences
-
Exploitsave_text_file writes without path validation
-
ExecutionOverwrite config or plant executable file
-
ImpactAchieve code execution or tamper state
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 the attacker to reach the agent-zero file-browser save feature that invokes FileBrowser.save_text_file, which accepts a user-controlled destination path with no normalization or validation; any request able to set that path can traverse outside the intended directory. Affected deployments are agent-zero versions 1.7, 1.8, 1.9, and 1.10. Limiting factors: the attacker must have network access to the agent-zero instance exposing this functionality, and the real-world reachability depends on whether the deployment places the file-browser/web UI behind authentication - the description does not state an authentication requirement and the supplied vector encodes PR:N, so authentication requirements are not independently confirmed from the available data. |
| Impact | Signals are mixed and point to a moderate, not emergency, priority. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) describes a network-reachable, low-complexity flaw with no stated authentication or user interaction, which drives the 7.5 base score - but the impact metrics (C:H/I:N/A:N) conflict with the described mechanism: a path-traversal flaw in a save_text_file method is an arbitrary file WRITE primitive, which is an integrity impact, not the confidentiality-only impact the input vector encodes. This discrepancy should be verified with the reporter, as it materially changes what the bug actually does. EPSS is low (0.24%, 16th percentile), the CVE is NOT on CISA KEV, and there is no SSVC block in the input; the only urgency signal is the vuln.today 'this_week' decision label, which is consistent with a real but non-critical fix timeline rather than act_now/emergency. A public PoC reference exists (a gist and the upstream GitHub issue) but it is not verified as working exploit code. Net: a genuine, straightforwardly reachable traversal bug in a niche product that warrants patching on a near-term schedule, but the low EPSS, absence of KEV listing, and limited deployment footprint argue against treating it as a widespread, high-urgency threat. |
| Exploit ScenarioDerived | An attacker able to reach the agent-zero web file-browser functionality submits a save-file request whose target path contains directory-traversal sequences (e.g. ../../), causing FileBrowser.save_text_file to write attacker-controlled content outside the intended working directory - for example overwriting a configuration file or planting a script in a location that is later executed. A public PoC reference (a gist and the upstream issue) exists but is not verified as working exploit code. Per the supplied CVSS the vector is network, low-complexity with no required user interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
Agent Zero 1.7 through 1.10 writes text files to attacker-chosen locations because FileBrowser.save_text_file in python/helpers/file_browser.py accepts a user-controlled destination path without normalization or validation, allowing classic path traversal (CWE-22). Per the independent assessment, the realistic impact is integrity - arbitrary file write outside the intended directory - rather than disclosure, and the instance must be network-reachable with the file-browser save feature exposed. Exploitation is not confirmed as active, EPSS is low at 0.24% (16th percentile), and the priority signal is 'this_week', i.e. a moderate issue rather than an emergency; the public references are a project issue and a third-party gist, with no working exploit code confirmed at time of analysis.
RemediationAI
No vendor-released patch or fixed version is identified in the available data, so the first step is to check the upstream project issue (https://github.com/agent0ai/agent-zero/issues/1541) and the vuldb/EUVD advisories for the current fix status before exposing the instance further. Until a fix is published, the most direct mitigation is to remove network reachability of the file-browser save functionality: bind the Agent Zero web interface to loopback or a private management network, or place it behind an authenticating reverse proxy and block untrusted clients, with the trade-off that the agent UI is no longer usable by remote users without that proxy or VPN. Additionally, run the Agent Zero process under an account whose write permissions are scoped to its own workspace directory so a successful traversal cannot touch sensitive paths - this limits but does not eliminate the issue, and it may break features that legitimately write elsewhere. Because the assessment confirms no authentication requirement from the available vector data, do not assume a login prompt is a sufficient control without independently verifying that the save endpoint is actually gated.
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
The flaw sits in the file-browser helper of the Agent Zero Python application, specifically the FileBrowser.save_text_file method, which persists user-supplied text using a caller-provided path. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) applies because the code neither normalizes the incoming path nor verifies that the resolved destination stays inside the intended workspace directory - the kind of containment check normally implemented with canonicalization plus a common-prefix comparison. A path containing '..' segments or an absolute path can therefore resolve outside the sandboxed area, and because the operation is a write primitive the consequence is modification or creation of files on the host filesystem where the Agent Zero process has permissions, not disclosure of file contents. The supplied CPE strings are unpopulated (n/a:n/a), so product identification rests on the description and the EUVD record rather than on structured CPE version ranges; the trigger for the traversal itself is described only at the level of 'user-controlled file paths without normalization or validation', and no further mechanism detail is given in the available sources.
Know when Python 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
A traversal in save_text_file is an arbitrary file-write (integrity) primitive, so I:H and C:N; network-reachable and low-complexity with no stated auth per the description, hence AV:N/AC:L/PR:N.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
modelscope agent-zero 1.7, 1.8, 1.9, and 1.10 is vulnerable to Directory Traversal in python/helpers/file_browser.py:FileBrowser.save_text_file. The save_text_file method accepts user-controlled file paths without normalization or validation, allowing path traversal attacks.
Executive ViewAI
CVE-2026-51851 is a high-severity path traversal vulnerability in Agent Zero versions 1.7 through 1.10 that allows an attacker to write arbitrary files to attacker-chosen locations on the server. Organizations running these Agent Zero versions with the file-browser save feature exposed to the network face potential integrity compromise, including unauthorized modification of application files or configuration. Leadership should prioritize remediation within the week as a moderate-risk issue, with no evidence of active exploitation.
Restrict network access to the file-browser save feature to trusted users and networks; disable the feature if not essential; deploy a web application firewall to filter path traversal patterns; monitor file integrity on affected systems.
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.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-113288
GHSA-jmhq-mcj5-qjhx
NVD
CVE.org
EPSS
VulDB
Exploit-DB