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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-03-31 · Modified: 2025-10-14
- Aliases: GHSA-px37-jpqx-97q9, PYSEC-2026-1207
- Record: https://cvemate.com/vulnerability/CVE-2025-3047 · JSON: https://cvemate.com/vulnerability/CVE-2025-3047/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.784%, percentile 57.405%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- aws aws serverless application model command line interface: ≥ 1.98.0, \< 1.133.0
- PyPI aws-sam-cli (PyPI): \< 1.133.0

## 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://nvd.nist.gov/vuln/detail/CVE-2025-3047>
- <https://github.com/aws/aws-sam-cli/pull/7865>
- <https://aws.amazon.com/security/security-bulletins/AWS-2025-008>
- <https://github.com/aws/aws-sam-cli>
- <https://pypi.org/project/aws-sam-cli>
- <https://github.com/advisories/GHSA-px37-jpqx-97q9>

---

Data as of 2026-12-05T10:32:40.015Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
