{"id":"CVE-2025-3048","published":"2025-03-31T15:21:16Z","modified":"2025-10-14T19:23:20Z","title":"Path Traversal in AWS SAM CLI allows file copy to local cache","vendor":"AWS","product":"AWS Serverless Application Model Command Line Interface","tier":"tail","description":{"text":"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.\n\nUsers 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00672,"percentile":0.52992,"provenance":"source"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"references":[{"url":"https://aws.amazon.com/security/security-bulletins/AWS-2025-008/","tags":["vendor-advisory"]},{"url":"https://github.com/aws/aws-sam-cli/security/advisories/GHSA-pp64-wj43-xqcr","tags":["third-party-advisory"]},{"url":"https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0","tags":["patch"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":10.6},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"aws","affectedVersions":[{"vendor":"AWS","product":"AWS Serverless Application Model Command Line Interface","versions":[">= 1.9.0, < 1.134.0"]}],"capec":[{"id":"CAPEC-126","name":"Path Traversal"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-31T16:19:35.404802Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"aws-sam-cli","vulnerableRanges":["<1.134.0"],"patched":["1.134.0"],"from":["GHSA-pp64-wj43-xqcr","PYSEC-2026-1206"],"provenance":"source"}],"summary":{"text":"AWS Serverless Application Model Command Line Interface (SAM CLI) contains a path traversal flaw in which symlinks included in a build are copied into the local workspace cache as regular files or directories, with their contents resolved. An attacker who can get a build to process symlinks that point outside the Docker container can read content they should not have access to, and that content then becomes reachable through the local workspace; the attack needs a user to take part in the build process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:18Z"},"euvd":{"id":"EUVD-2025-8753","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-aws-serverless-application-model-command-cve-2025-3047","packageHistory":[{"cve":"CVE-2025-3047","published":"2025-03-31","fixed":"1.133.0","kev":false,"link":{"from":"CVE-2025-3047","to":"CVE-2025-3048","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:aws-sam-cli","fromFixed":"1.133.0","toFixed":"1.134.0","daysApart":0},{"kind":"similar","provenance":"machine","score":0.68,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2025-3048","published":"2025-03-31","fixed":"1.134.0","kev":false}],"package":"PyPI:aws-sam-cli"}}