6.5Medium

CVE-2025-3047Path Traversal in AWS SAM CLI allows file copy to build container

AWS AWS Serverless Application Model Command Line Interface Published: (1 year ago)

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.

Weakness (CWE): CWE-61

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

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

References and patches