{"id":"CVE-2025-3047","published":"2025-03-31T15:21:11Z","modified":"2025-10-14T19:22:56Z","title":"Path Traversal in AWS SAM CLI allows file copy to build container","vendor":"AWS","product":"AWS Serverless Application Model Command Line Interface","tier":"tail","description":{"text":"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. \n\nUsers should upgrade to v1.133.0 or newer and ensure any forked or derivative code is patched to incorporate the new fixes.","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.00784,"percentile":0.56971,"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-px37-jpqx-97q9","tags":["third-party-advisory"]},{"url":"https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0","tags":["patch"]}],"priority":{"score":20.9,"factors":[{"name":"EPSS percentile","points":11.39},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-04-02","earliestUrl":"https://github.com/murataydemir/AWS-SAM-CLI-Vulnerabilities","repos":[{"name":"murataydemir/AWS-SAM-CLI-Vulnerabilities","url":"https://github.com/murataydemir/AWS-SAM-CLI-Vulnerabilities","stars":0,"created":"2025-04-02"}]},"first":{"date":"2025-04-02","source":"PoC-in-GitHub","url":"https://github.com/murataydemir/AWS-SAM-CLI-Vulnerabilities"},"provenance":"source"},"vendorSlug":"aws","affectedVersions":[{"vendor":"AWS","product":"AWS Serverless Application Model Command Line Interface","versions":[">= 1.98.0, < 1.133.0"]}],"capec":[{"id":"CAPEC-126","name":"Path Traversal"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-31T16:19:55.414302Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"aws-sam-cli","vulnerableRanges":["<1.133.0"],"patched":["1.133.0"],"from":["GHSA-px37-jpqx-97q9","PYSEC-2026-1207"],"provenance":"source"}],"summary":{"text":"The AWS Serverless Application Model Command Line Interface (SAM CLI) contains a path traversal flaw in its build process, which runs with Docker, when symlinks are included in the build files. An attacker who can get a user to build a project containing malicious symlinks, which requires user interaction, can use the tool's elevated container permissions to read restricted files on the host via those symlinks and copy them to a more permissive location within the container.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:38Z"},"euvd":{"id":"EUVD-2025-8754","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},{"cve":"CVE-2025-3048","published":"2025-03-31","fixed":"1.134.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"}]}}],"package":"PyPI:aws-sam-cli"}}