Skip to content
OpenAdvisories
Medium · 6.5 Public exploit CVE-2025-3047 EUVD-2025-8754GHSA-px37-jpqx-97q9PYSEC-2026-1207

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

Published Mar 31, 2025 · Updated Oct 14, 2025 · Assigned by AMZN

Description

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 products

VendorProductAffectedFixed
AWS AWS Serverless Application Model Command Line Interface 1.98.0 – < 1.133.0 1.133.0

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI aws-sam-cli < 1.133.0 1.133.0 GHSA-px37-jpqx-97q9

References