Post

CVE-2026-18953 — AWS Transform MCP Arbitrary File Write

CVE-2026-18953 is a path traversal vulnerability (CWE-22, CVSS 8.6) in AWS Transform MCP Server’s get_resource tool. The savePath parameter bypasses validation checks because the code relies on a denylist of blocked filenames/paths but never confines the resolved path to a base directory, allowing an LLM-controlled savePath to write arbitrary files outside the working directory and potentially achieve local code execution. The vulnerability affects awslabs.aws-transform-mcp-server versions 0.1.0 through 0.1.4; the fix in 0.1.5 introduces a WRITE_BASE_ENV_VAR setting and validates that all writes resolve under the configured base directory. The write-up includes full source code diffs, root cause analysis, and proof of concept demonstrating the vulnerable versus patched behavior.

Read original article

This post is licensed under CC BY 4.0 by the author.