{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-3047","id":"CVE-2025-3047","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 ","descriptionLong":"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.","published":"2025-03-31T15:21:11.290Z","updated":"2026-10-28T02:30:57.114349912Z","reserved":"2025-03-31T13:32:50.477Z","status":"Deferred","rejected":false,"assigner":"AMZN","metric":{"version":"4.0","score":6.9,"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","rating":"medium","source":"AMZN"},"metrics":[{"version":"4.0","score":6.9,"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","rating":"medium","source":"AMZN"},{"version":"4.0","score":6.9,"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/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","rating":"medium","source":"ff89ba41-3aa1-4d27-914a-91399e9639e5"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"AMZN"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"ff89ba41-3aa1-4d27-914a-91399e9639e5"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["AWS Serverless Application Model Command Line Interface"],"affectedProducts":[{"vendor":"AWS","product":"AWS Serverless Application Model Command Line Interface","defaultStatus":"unaffected","versions":[{"lessThan":"1.133.0","status":"affected","version":"1.98.0","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"aws-sam-cli","purl":"pkg:pypi/aws-sam-cli","ranges":["<1.133.0"],"fixed":["1.133.0"],"advisory":"GHSA-px37-jpqx-97q9"}],"cwes":["CWE-61","CWE-22"],"aliases":["GHSA-px37-jpqx-97q9","PYSEC-2026-1207"],"references":[{"url":"https://aws.amazon.com/security/security-bulletins/AWS-2025-008/","tags":["vendor-advisory","advisory"]},{"url":"https://github.com/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9","tags":["third-party-advisory","advisory","web"]},{"url":"https://github.com/aws/aws-sam-cli/releases/tag/v1.134.0","tags":["patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3047.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-3047","tags":["advisory"]},{"url":"https://github.com/aws/aws-sam-cli/pull/7865","tags":["web"]},{"url":"https://aws.amazon.com/security/security-bulletins/AWS-2025-008","tags":["web"]},{"url":"https://github.com/aws/aws-sam-cli","tags":["package"]},{"url":"https://pypi.org/project/aws-sam-cli","tags":["package"]},{"url":"https://github.com/advisories/GHSA-px37-jpqx-97q9","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00784,"epssPercentile":0.5684,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-3047","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-3047","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-3047","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-px37-jpqx-97q9","ok":true,"note":"GHSA-px37-jpqx-97q9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-3047","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}