What’s Vulnerable › Vulnerabilities
CVE-2025-3048: Path Traversal in AWS SAM CLI allows file copy to local cache
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-03-31 · updated 2026-06-17
- Weakness: CWE-61
Description
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.
Affected products
- AWS Serverless Application Model Command Line Interface: from 1.9.0 before 1.134.0 — fixed in 1.134.0
How to fix
Upgrade to a fixed version: AWS Serverless Application Model Command Line Interface 1.134.0. Check the vendor advisory for mitigations.
References
- https://aws.amazon.com/security/security-bulletins/AWS-2025-008/
- https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0
- https://github.com/aws/aws-sam-cli/security/advisories/GHSA-pp64-wj43-xqcr
Get alerted when CVE-2025-3048 or the next vulnerability affects your stack