Description
agent-zero 1.7, 1.8, 1.9, and 1.10 is vulnerable to Directory Traversal in python/helpers/file_browser.py:FileBrowser.save_file_b64. The save_file_b64 method accepts user-controlled file paths without normalization or validation, allowing path traversal attacks.
Published: 2026-09-30
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary File Write
Action: Apply Patch
AI Analysis

Impact

Agent‑zero versions 1.7 through 1.10 contain a flaw in the FileBrowser.save_file_b64 routine that writes Base64‑decoded data to disk. The routine accepts a caller‑supplied filename without normalizing or validating the path, creating a directory traversal vector. An attacker able to supply a path such as ../../../../etc/passwd can cause the agent to create or overwrite arbitrary files on any location the process can reach, thus enabling modification of configuration files, program binaries, or system files.

Affected Systems

All publicly released agent‑zero releases from 1.7 to 1.10 are affected. The vulnerable code resides in python/helpers/file_browser.py and is exercised whenever the agent processes commands that trigger file writes, a common scenario when the agent operates as a daemon receiving network input or when third‑party plugins interact with it.

Risk and Exploitability

The CVSS score of 7.5 reflects a high severity, but the EPSS score of less than 1% indicates a very low historical exploitation likelihood. The vulnerability is not listed in CISA's KEV catalog, suggesting no widespread, confirmed exploitation. However, the absence of path sanitization provides a simple path for attackers. If the agent runs with elevated privileges or can write to critical system locations, an attacker could install malicious binaries or modify configuration files, potentially leading to remote code execution or data exfiltration in environments where the agent accepts untrusted inputs.

Generated by OpenCVE AI on October 7, 2026 at 19:39 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Check the official agent‑zero repository for a new release that patches the FileBrowser.save_file_b64 function and upgrade immediately.
  • Modify the agent’s configuration or deployment so that the agent runs with the least privilege necessary and restricts download and execution permissions to a known safe directory.
  • If a patch is not yet available, implement server‑side input validation that rejects any filename containing directory traversal sequences or absolute paths before calling the save routine.

Generated by OpenCVE AI on October 7, 2026 at 19:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 07 Oct 2026 20:00:00 +0000

Type Values Removed Values Added
Title Directory Traversal in agent‑zero FileBrowser.save_file_b64 Allows Arbitrary File Write

Wed, 07 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22
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'}


Thu, 01 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
Title Directory Traversal in agent‑zero FileBrowser.save_file_b64 Allows Arbitrary File Write

Wed, 30 Sep 2026 21:00:00 +0000

Type Values Removed Values Added
Description agent-zero 1.7, 1.8, 1.9, and 1.10 is vulnerable to Directory Traversal in python/helpers/file_browser.py:FileBrowser.save_file_b64. The save_file_b64 method accepts user-controlled file paths without normalization or validation, allowing path traversal attacks.
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-07T15:48:05.859Z

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

Link: CVE-2026-51852

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-09-30T21:17:11.273

Modified: 2026-10-07T16:17:48.410

Link: CVE-2026-51852

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T19:45:06Z

Weaknesses
  • CWE-22

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