ZDS-2025-0139CRITICAL9.4CWE-22DISCLOSEDdisclosed 2025-04-10

Path traversal in tool/read_file allows host FS read

/summary

Summary

The read_file MCP tool fails to canonicalize paths before its allowlist check. A model-issued '../' escape exfiltrates SSH keys and .env from the host.

/poc

Proof-of-concept

# Reproduction steps redacted under coordinated disclosure.
# Full PoC will be published with the advisory at embargo expiry.

$ zds reproduce ZDS-2025-0139
ZDS-2025-0139 — Path traversal in tool/read_file allows host FS read · ZeroDayShield