CVE-2025-3047
MEDIUM 6.9CVSS 4.0AWS SAM CLI Path Traversal allows file copy to build container
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.
- Published
- 31 Mar 2025
- Last modified
- 7 Jul 2026
- Assigned by
- ff89ba41-3aa1-4d27-914a-91399e9639e5
- NVD status
- Deferred
- Weakness
- CWE-22CWE-61
- Also known as
- GHSA-px37-jpqx-97q9PYSEC-2026-1207
- Sources
- NVDJSONOSV GHSA-px37-jpqx-97q9JSONOSV PYSEC-2026-1207JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ff89ba41-3aa1-4d27-914a-91399e9639e5 (Secondary) | CVSS 4.0 | MEDIUM 6.9 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | 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 | |
| OSV | PyPA | 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 | |
| NVD | ff89ba41-3aa1-4d27-914a-91399e9639e5 (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | aws-sam-cli | < 1.133.0 | 1.133.0 |
References
- https://aws.amazon.com/security/security-bulletins/AWS-2025-008/ · WEB
- https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0 · WEB
- https://github.com/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-3047 · ADVISORY
- https://github.com/aws/aws-sam-cli/pull/7865 · 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
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 31 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 31 Mar 2025)