CVE-2025-3047 json
Path Traversal in AWS SAM CLI allows file copy to build container
published 2025-03-31 19 mo ago modified 2026-07-07 4 mo ago also GHSA-px37-jpqx-97q9 , PYSEC-2026-1207 , EUVD-2025-8754
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi aws-sam-cli 1.133.0
- AWS AWS Serverless Application Model Command Line Interface 1.133.0
- github.com/aws/aws-sam-cli#7865 pull request
- github.com/aws/aws-sam-cli/releases/tag/v1.134.0 release
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
0.78% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| CNA | 4.0 | 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 |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | aws-sam-cli | <1.133.0 |
1.133.0 |
Affected products
- AWS AWS Serverless Application Model Command Line Interface
Classification
References
-
github.com
/aws/aws-sam-cli/releases/tag/v1.134.0
patch, web
-
github.com
/aws/aws-sam-cli/pull/7865
web
-
aws.amazon.com
/security/security-bulletins/AWS-2025-008/
vendor-advisory
-
github.com
/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9
third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2025-3047
advisory
-
aws.amazon.com
/security/security-bulletins/AWS-2025-008
web
-
github.com
/aws/aws-sam-cli
package
-
pypi.org
/project/aws-sam-cli
package
-
github.com
/advisories/GHSA-px37-jpqx-97q9
advisory
Sources
- CVE List CVE-2025-3047
- GitHub Advisory GHSA-px37-jpqx-97q9
- NVD CVE-2025-3047
- OSV PYSEC-2026-1207
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.