Vulnerability · Published Mar 31, 2025 · Assigned by AMZN

CVE-2025-3048Path Traversal in AWS SAM CLI allows file copy to local cache

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.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.7%top 47.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIaws-sam-cli1.134.0GHSA-pp64-wj43-xqcr
PyPIaws-sam-cli1.134.0PYSEC-2026-1206

Affected products (as reported)

VendorProductVersions
AWS AWS Serverless Application Model Command Line Interface 1.9.0 – before 1.134.0

Weakness: CWE-61 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

References