CVE-2025-3047

published 31 Mar 2025 · updated 14 Oct 2025

Path Traversal in AWS SAM CLI allows file copy to build container

6.5MediumCVSS 6.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.133.0.

When running the AWS Serverless Application Model Command Line Interface (SAM CLI) build process with Docker and symlinks are included in the build files, the container environment allows a user to access privileged files on the host by leveraging the elevated permissions granted to the tool. A user could leverage the elevated permissions to access restricted files via symlinks and copy them to a more permissive location on the container. Users should upgrade to v1.133.0 or newer and ensure any forked or derivative code is patched to incorporate the new fixes.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
AWS>=1.98.0 <1.133.01.133.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-3047 severity on Zeptric[![CVE-2025-3047](https://zeptric.io/badge/cve/CVE-2025-3047.svg)](https://zeptric.io/cve/CVE-2025-3047)