Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. aws-sam-cli
  4. ›
  5. CVE-2025-3048

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

March 31, 2025

The AWS Serverless Application Model Command Line Interface (AWS SAM CLI) is an open-source CLI tool that helps Lambda developers to build and develop Lambda applications locally on their computers using Docker.

After completing a build with AWS 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 v1.134.0 or newer 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.

References

  • aws.amazon.com/security/security-bulletins/AWS-2025-008
  • github.com/advisories/GHSA-pp64-wj43-xqcr
  • github.com/aws/aws-sam-cli
  • github.com/aws/aws-sam-cli/pull/7890
  • github.com/aws/aws-sam-cli/security/advisories/GHSA-pp64-wj43-xqcr
  • nvd.nist.gov/vuln/detail/CVE-2025-3048

Code Behaviors & Features

Detect and mitigate CVE-2025-3048 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.134.0

Fixed versions

  • 1.134.0

Solution

Upgrade to version 1.134.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/aws-sam-cli/CVE-2025-3048.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 13 May 2025 00:14:36 +0000.