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

- 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.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2025-03-31T15:21:16.205Z
- Modified: 2026-07-07T17:57:03.345Z
- Also known as: GHSA-pp64-wj43-xqcr, PYSEC-2026-1206
- Weaknesses: CWE-22, CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: AMZN

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

(As written by CVE List.)

## Affected

- AWS AWS Serverless Application Model Command Line Interface: from 1.9.0 before 1.134.0
- aws-sam-cli (PyPI): before 1.134.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-pp64-wj43-xqcr> (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-3048> (advisory)
- <https://github.com/aws/aws-sam-cli/pull/7890> (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-pp64-wj43-xqcr> (advisory)

## Sources

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

---

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