{"answers":{"affected":"3 open source packages ship an affected version, including aws-sam-cli.","exploited":"There is no known exploitation of CVE-2025-3048 in the wild and no public exploit code.","fix":"Upgrade aws-sam-cli to 1.134.0 or later.","what":"CVE-2025-3048 is a medium-severity path traversal vulnerability in AWS Serverless Application Model Command Line Interface, published on 31 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-3048 and fix it if it is affected.\n\nWhat it is: CVE-2025-3048 is a medium-severity path traversal vulnerability in AWS Serverless Application Model Command Line Interface, published on 31 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-3048 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- aws-sam-cli (PyPI): affected all versions; fixed in 1.134.0\n- aws-sam-cli (PyPI): affected all versions; fixed in 1.134.0\n- aws-sam-cli (PyPI): affected all versions; fixed in 1.134.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-3048/ (Markdown: https://insights.sbomify.com/CVE-2025-3048/index.md)","id":"CVE-2025-3048","markdown":"https://insights.sbomify.com/CVE-2025-3048/index.md","name":"CVE-2025-3048","record":{"aliases":["GHSA-pp64-wj43-xqcr","PYSEC-2026-1206"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"AWS SAM CLI","requires_auth":"none","summary":"AWS SAM CLI copies symlinked files to local cache, allowing unauthorized users to read sensitive files accessible only within the Docker container.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"AMZN","cpe":[],"cvss":{"score":6.9,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Path Traversal in AWS SAM CLI allows file copy to local cache","id":"CVE-2025-3048","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":3,"n_references":3,"next":{"headline":"IBM Db2 denial of service","id":"CVE-2025-3050"},"packages":[{"ecosystem":"PyPI","fixed":["1.134.0"],"introduced":["0"],"last_affected":[],"package":"aws-sam-cli","purl":null,"source":"GHSA-pp64-wj43-xqcr"},{"ecosystem":"PyPI","fixed":["1.134.0"],"introduced":["0"],"last_affected":[],"package":"aws-sam-cli","purl":"pkg:pypi/aws-sam-cli","source":"GHSA-pp64-wj43-xqcr"},{"ecosystem":"PyPI","fixed":["1.134.0"],"introduced":["0"],"last_affected":[],"package":"aws-sam-cli","purl":"pkg:pypi/aws-sam-cli","source":"PYSEC-2026-1206"}],"prev":{"headline":"Path Traversal in AWS SAM CLI allows file copy to build container","id":"CVE-2025-3047"},"products":["AWS Serverless Application Model Command Line Interface"],"published":"2025-03-31","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-14","vendors":["AWS"]},"summary":"AWS SAM CLI copies symlinked files to local cache, allowing unauthorized users to read sensitive files accessible only within the Docker container.","url":"https://insights.sbomify.com/CVE-2025-3048/"}