# CVE-2026-51852: agent-zero directory traversal in file save

Source: https://junglewise.ai/threats/cve-2026-51852-agent-zero-1-7-1-8-1-9-and-1-10-is-vulnerable-to-directory  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-30. Updated: 2026-09-30  
License: CC BY 4.0 with a link back

CVE-2026-51852 · Severity: info · Published 2026-09-30

agent-zero is an AI agent framework that provides a web interface for task automation. A directory traversal vulnerability in the file upload function allows an attacker to write arbitrary files to any location on the host system, potentially enabling code execution, system compromise, or credential theft through path manipulation.

Technologies: [Agent0ai Agent Zero](https://junglewise.ai/threats/technologies/agent-zero). Vendors: [Agent0ai](https://junglewise.ai/threats/vendors/agent0ai).

## Quick answers

**Is CVE-2026-51852 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-51852 being exploited in the wild.

**How severe is CVE-2026-51852?** Informational severity, published 30 September 2026.

**Which products and versions are affected?** Agent0ai Agent Zero 1.7, 1.8, 1.9, 1.10.

**Is there a fix for CVE-2026-51852?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-51852 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-51852?** Check whether you run Agent0ai Agent Zero at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The save_file_b64 method in FileBrowser accepts user-supplied file paths without normalization or validation, enabling path traversal via ".." sequences. An authenticated attacker can exploit this by crafting malicious paths (e.g., "../../../../etc/cron.d/malicious") to write files outside the intended workspace directory. The vulnerability requires network access to the web service and a valid CSRF token, allowing arbitrary file write as the application's user.

## Affected products

- agent0ai agent-zero 1.7, 1.8, 1.9, 1.10

## Timeline

- 2026-09-30: disclosed

## References

- [https://gist.github.com/Ro1ME/13af0869833757245685d2d390458664](https://gist.github.com/Ro1ME/13af0869833757245685d2d390458664)
- [https://github.com/agent0ai/agent-zero/issues/1540](https://github.com/agent0ai/agent-zero/issues/1540)

## Related threats

- [agent-zero directory traversal in file browser initialization](https://junglewise.ai/threats/cve-2026-51853-agent-zero-1-7-1-8-1-9-and-1-10-is-vulnerable-to-directory)
- [Agent Zero stored XSS in image_get API endpoint](https://junglewise.ai/threats/cve-2026-47119-agent-zero-stored-xss-in-image-get-api-endpoint)
- [Agent Zero path traversal and XSS in image_get API](https://junglewise.ai/threats/cve-2026-47118-agent-zero-path-traversal-and-xss-in-image-get-api)
