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

- Severity: Medium 6.9 (CVSS:4.0, scored by AMZN) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2025-03-31T15:21:11.290Z
- Modified: 2026-07-07T17:56:46.290Z
- Also known as: GHSA-px37-jpqx-97q9, PYSEC-2026-1207
- Weaknesses: CWE-22, CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: AMZN

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

(As written by CVE List.)

## Affected

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

## Every score

- AMZN: CVSS:4.0 6.9 Medium `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`
- AMZN: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://aws.amazon.com/security/security-bulletins/AWS-2025-008/> (vendor-advisory)
- <https://github.com/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9> (third-party-advisory, web)
- <https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-3047> (advisory)
- <https://github.com/aws/aws-sam-cli/pull/7865> (web)
- <https://aws.amazon.com/security/security-bulletins/AWS-2025-008> (web)
- <https://github.com/aws/aws-sam-cli> (package)
- <https://pypi.org/project/aws-sam-cli> (package)
- <https://github.com/advisories/GHSA-px37-jpqx-97q9> (advisory)

## Sources

- CVE List: [CVE-2025-3047](https://www.cve.org/CVERecord?id=CVE-2025-3047), CVE Terms of Use, modified 2025-10-14
- GitHub Advisory Database: [GHSA-px37-jpqx-97q9](https://github.com/advisories/GHSA-px37-jpqx-97q9), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-3047](https://nvd.nist.gov/vuln/detail/CVE-2025-3047), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1207](https://osv.dev/vulnerability/PYSEC-2026-1207), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-3047 · Whole record: https://cve.day/CVE-2025-3047.json · Rebuilt by cve.day 2026-11-25T22:58:55.737Z
