CVE-2025-3047

Path Traversal in AWS SAM CLI allows file copy to build container

Published Mar 31, 2025 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
When running the AWS Serverless Application Model Command Line Interface (SAM CLI) build process with Docker and symlinks are included in the build files, the container environment allows a user to access privileged files on the host by leveraging the elevated permissions granted to the tool. A user could leverage the elevated permissions to access restricted files via symlinks and copy them to a more permissive location on the container.

Users should upgrade to v1.133.0 or newer and ensure any forked or derivative code is patched to incorporate the new fixes.

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-8754 AWS SAM CLI Path Traversal allows file copy to build container
Github GHSA Github GHSA GHSA-px37-jpqx-97q9 AWS SAM CLI Path Traversal allows file copy to build container
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 When running the AWS Serverless Application Model Command Line Interface (SAM CLI) build process with Docker and symlinks are included in the build files, the container environment allows a user to access privileged files on the host by leveraging the elevated permissions granted to the tool. A user could leverage the elevated permissions to access restricted files via symlinks and copy them to a more permissive location on the container. Users should upgrade to v1.133.0 or newer and ensure any forked or derivative code is patched to incorporate the new fixes.
Title Path Traversal in AWS SAM CLI allows file copy to build container
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:22 PM
Reserved
Mar 31, 2025, 1:32 PM
Status
Deferred
Published
Mar 31, 2025, 4:15 PM
Modified
Jun 17, 2026, 9:19 AM