CVE-2025-3048Path Traversal in AWS SAM CLI allows file copy to local cache
After completing a build with AWS Serverless Application Model Command Line Interface (SAM CLI) which include symlinks, the content of those symlinks are copied to the cache of the local workspace as regular files or directories. As a result, a user who does not have access to those symlinks outside of the Docker container would now have access via the local workspace. Users should upgrade to version 1.134.0 and ensure any forked or derivative code is patched to incorporate the new fixes. After upgrading, users must re-build their applications using the sam build --use-container to update the symlinks.
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.134.0 | GHSA-pp64-wj43-xqcr |
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.9.0 to before 1.134.0; fixed in
1.134.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-pp64-wj43-xqcr
- 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.