Medium severity · published Mar 31, 2025
CVE-2025-3048
Path Traversal in AWS SAM CLI allows file copy to local cache
6.5
CVSS
0.7%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 52% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AS
AWS Serverless Application Model Command Line Interface · AWS
1.9.0 before 1.134.0 · source: vendor
Affected product
AS
AWS Serverless Application Model Command Line Interface
AWS
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-3048
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-3048
aws.amazon.com
https://aws.amazon.com/security/security-bulletins/AWS-2025-008/
github.com
https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0
github.com
https://github.com/aws/aws-sam-cli/security/advisories/GHSA-pp64-wj43-xqcr
More from AWS Serverless Application Model Command Line Interface
6.5
CVE-2025-3047
Path Traversal in AWS SAM CLI allows file copy to build container
