Vulnerability · Published Mar 31, 2025 · Assigned by AMZN
CVE-2025-3047Path Traversal in AWS SAM CLI allows file copy to build container
Medium 6.5
In plain English
A medium-severity security flaw in AWS Serverless Application Model Command Line Interface from AWS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | aws-sam-cli | 1.133.0 | GHSA-px37-jpqx-97q9 |
| PyPI | aws-sam-cli | 1.133.0 | PYSEC-2026-1207 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| AWS | AWS Serverless Application Model Command Line Interface | 1.98.0 – before 1.133.0 |
Weakness: CWE-61 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N