{"id":"CVE-2025-3047","state":"PUBLISHED","title":"Path Traversal in AWS SAM CLI allows file copy to build container","description":"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.","publishedAt":"2025-03-31T15:21:11.290Z","updatedAt":"2025-10-14T19:22:56.059Z","severity":{"score":6.9,"label":"Medium","version":"4.0","vector":"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","source":"AMZN"},"assigner":"AMZN","products":["AWS AWS Serverless Application Model Command Line Interface"],"affected":[{"vendor":"AWS","product":"AWS Serverless Application Model Command Line Interface","defaultStatus":"unaffected","versions":[{"version":"1.98.0","status":"affected","lessThan":"1.133.0","versionType":"semver"}]}],"references":["https://aws.amazon.com/security/security-bulletins/AWS-2025-008/","https://github.com/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9","https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0"],"weaknesses":["CWE-61"],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/3xxx/CVE-2025-3047.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-3047","state":"PUBLISHED","datePublished":"2025-03-31T15:21:11.290Z","dateUpdated":"2025-10-14T19:22:56.059Z","assignerShortName":"AMZN","assignerOrgId":"ff89ba41-3aa1-4d27-914a-91399e9639e5","dateReserved":"2025-03-31T13:32:50.477Z"},"containers":{"cna":{"title":"Path Traversal in AWS SAM CLI allows file copy to build container","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"AWS","product":"AWS Serverless Application Model Command Line Interface","defaultStatus":"unaffected","versions":[{"version":"1.98.0","status":"affected","lessThan":"1.133.0","versionType":"semver"}]}],"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"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":6.9,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"ACTIVE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]},{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-61","description":"CWE-61: UNIX Symbolic Link (Symlink) Following","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"AMZN","orgId":"ff89ba41-3aa1-4d27-914a-91399e9639e5","dateUpdated":"2025-10-14T19:22:56.059Z"},"impacts":[{"capecId":"CAPEC-126","descriptions":[{"lang":"en","value":"CAPEC-126 Path Traversal"}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-31T16:19:55.414302Z","id":"CVE-2025-3047","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-31T18:50:10.414Z"}}]}}}