CVE-2025-3047Path Traversal in AWS SAM CLI allows file copy to build container
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.
What to do
Fixed builds are available from PyPI: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| PyPI library | aws-sam-cli | Fixed | 1.133.0 | GHSA-px37-jpqx-97q9 |
What the vendor says
As published in the CVE record by AMZN, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- AWS Serverless Application Model Command Line Interface: affected: 1.98.0 to before 1.133.0; fixed in
1.133.0
Vendor advisories:
- https://aws.amazon.com/security/security-bulletins/AWS-2025-008/ (vendor-advisory)
- https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0 (patch)
References
- https://aws.amazon.com/security/security-bulletins/AWS-2025-008/
- https://github.com/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9
- https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.