Description
Agent Zero before version 1.15 contains a path traversal vulnerability that allows unauthenticated attackers to read arbitrary files by supplying crafted paths to the image file serving endpoint, which relies solely on an extension allowlist while the path containment check is explicitly disabled. Attackers can request any file with an image extension readable by the process, including files outside the agent workspace, user home directories, and mounted volumes, and can also leverage symlink-based escapes due to the lack of path canonicalization in the path resolution logic.
Problem types
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
Any version before 1.15
Credits
YU SUN
References
github.com/agent0ai/agent-zero/issues/1609
github.com/...ommit/1f2d5122265282d6b98bc36ee8f9d0f8ab76db9e
www.vulncheck.com/...h-traversal-file-read-via-image-get-api