CWE
22 497
Advisory Published
Updated

CVE-2025-3047: Path Traversal in AWS SAM CLI allows file copy to build container

First published: Mon Mar 31 2025(Updated: )

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. Users should upgrade to v1.133.0 or newer and ensure any forked or derivative code is patched to incorporate the new fixes.

Credit: ff89ba41-3aa1-4d27-914a-91399e9639e5

Affected SoftwareAffected VersionHow to fix
AWS Serverless Application Model Command Line Interface<1.133.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-3047?

    CVE-2025-3047 is classified as a high-severity vulnerability due to the risk of unauthorized access to privileged files on the host.

  • How do I fix CVE-2025-3047?

    To fix CVE-2025-3047, update the AWS Serverless Application Model CLI to a version higher than 1.133.0.

  • What versions of AWS Serverless Application Model CLI are affected by CVE-2025-3047?

    CVE-2025-3047 affects AWS Serverless Application Model CLI versions up to 1.133.0.

  • What kind of access does CVE-2025-3047 allow attackers?

    CVE-2025-3047 allows attackers to access privileged files on the host system by leveraging elevated permissions granted to the Docker container.

  • Is CVE-2025-3047 specific to certain environments?

    Yes, CVE-2025-3047 specifically affects scenarios where the AWS SAM CLI build process is conducted with Docker and involves symlinked files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203