Path Traversal in AWS SAM CLI allows file copy to build container
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-61 and the CVSS impact.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| AWS | AWS Serverless Application Model Command Line Interface | 1.98.0 to before 1.133.0 | 1.133.0 | Patch available | CNA |
| — | aws-sam-cli (PyPI) | before 1.133.0 | 1.133.0 | Patch available | GHSA-px37-jpqx-97q9 |
- AWS Serverless Application Model Command Line Interface VendorAWS Affected 1.98.0 to before 1.133.0 Fixed in 1.133.0 Patch available CNA
- aws-sam-cli (PyPI) Vendor— Affected before 1.133.0 Fixed in 1.133.0 Patch available GHSA-px37-jpqx-97q9
Remediation
- Fix · CNA AWS Serverless Application Model Command Line Interface (AWS) Fixed in 1.133.0
- Fix · GHSA-px37-jpqx-97q9 aws-sam-cli (PyPI) Fixed in 1.133.0 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
AWS Serverless Application Model Command Line Interface — aws.amazon.com/security/security-bulletins/AWS-2025-008
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2025-02661 Path Traversal in AWS SAM CLI allows file copy to local cachePriority LOW 32
Timeline
- 2026-10-02 Threatist record created from CVE-2025-3047
- 2026-10-03 Alias added: GHSA-px37-jpqx-97q9
References
Advisory 3
More AWS vulnerabilities
- TI-2026-23989 crypto: algif_aead - Revert to operating out-of-place KEVCVSS 3.1HIGH 7.8
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2024-18648 Amazon AWS Amplify CLI before 12.10.1 incorrectly configures the role trust policy of IAM… CVSS 3.1CRITICAL 9.8
- TI-2024-05929 Openssh: regresshion - race condition in ssh allows rce/dos CVSS 3.1HIGH 8.1
- TI-2025-03847 Input validation issue in AWS Amplify Studio UI component properties CVSS 4.0CRITICAL 9.0
- TI-2026-11603 HTTP/2 Stream Parser Confusion Body-Inspection Bypass in Amazon CloudFront with AWS WAF CVSS 4.0HIGH 7.9
Sources
- CVE-2025-3047 · CVE Program
- CVE-2025-3047 · NVD
- FIRST EPSS
- GHSA-px37-jpqx-97q9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences