CVE-2025-3048

Path Traversal in AWS SAM CLI allows file copy to local cache

Published Mar 31, 2025 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-8753 AWS SAM CLI Path Traversal allows file copy to local cache
Github GHSA Github GHSA GHSA-pp64-wj43-xqcr AWS SAM CLI Path Traversal allows file copy to local cache
History
Type Values Removed Values Added
Weaknesses CWE-22
CWE-497
Type Values Removed Values Added
Weaknesses CWE-61
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Path Traversal in AWS SAM CLI allows file copy to local cache
Weaknesses CWE-22
CWE-497
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
AMZN
Published
Updated
Oct 14, 2025, 7:23 PM
Reserved
Mar 31, 2025, 1:32 PM
Status
Deferred
Published
Mar 31, 2025, 4:15 PM
Modified
Jun 17, 2026, 9:19 AM