CVE-2025-3047

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

State
Published
Severity
6.9 Medium
Published
Mar 31, 2025
Updated
Oct 14, 2025
Reserved
Mar 31, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.9 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NAMZN
3.16.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NAMZN

Weaknesses

  • CWE-61 UNIX Symbolic Link (Symlink) Following

Affected Products

ProductVersions
AWS Serverless Application Model Command Line InterfaceAWS
  • 1.98.0 to before 1.133.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.