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

> CVE-2025-3047: Path Traversal in AWS SAM CLI allows file copy to build container. CVSS 6.5 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-3047
Last updated: 2026-06-17T09:19:05Z

- Published: 2025-03-31 15:21 UTC · Updated: 2026-06-17 09:19 UTC · Assigner: AMZN
- CVSS: 6.5 (CVSS 3.1) · Severity: Medium · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 0.78%, 56th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-61

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

## Affected vendors and products

- AWS: AWS Serverless Application Model Command Line Interface

## Tracked companies

- [Amazon Web Services](https://rewindex.com/company/aws.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-3047)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-3047)
- [https://aws.amazon.com/security/security-bulletins/AWS-2025-008/](https://aws.amazon.com/security/security-bulletins/AWS-2025-008/)
- [https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0](https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0)
- [https://github.com/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9](https://github.com/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-3047 · Markdown: https://rewindex.com/cve/CVE-2025-3047.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-3047 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:06:18.384Z
