Wiz Agents & Workflows are here

CVE-2025-3047
Python vulnerability analysis and mitigation

Overview

The AWS Serverless Application Model Command Line Interface (AWS SAM CLI) contains a path traversal vulnerability (CVE-2025-3047) discovered in March 2025. When running the AWS SAM CLI build process with Docker and symlinks are included in the build files, the container environment allows users to access privileged files on the host by leveraging elevated permissions granted to the tool. This vulnerability affects AWS SAM CLI versions 1.98.0 through 1.132.0 (AWS Security Bulletin, GitHub Advisory).

Technical details

The vulnerability occurs during the build process when using Docker containers. The tool does not prevent path traversal when building in a container with 'sam build -u', enabling the build script to access files outside of the build directory. Since the command requires elevated privileges due to Docker usage, it potentially enables the build script to read any file on the host system. The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N (GitHub Advisory).

Impact

The vulnerability is limited to local workspaces using AWS SAM CLI with container builds (--use-container). It potentially allows access to local files outside the build directory through the usage of symlinks. The issue does not affect AWS services, production environments, or cross-account resources. An attacker could leverage this vulnerability as part of a supply chain attack to exfiltrate sensitive files from the victim's system (GitHub Advisory).

Mitigation and workarounds

Users should upgrade to AWS SAM CLI version 1.133.0 or newer, which addresses the vulnerability. After upgrading, to retain the previous behavior and allow symlinks to resolve on the host machine, users can use the explicit '--mount-symlinks' parameter. There are no recommended workarounds other than upgrading to the patched version (AWS Security Bulletin).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-33641HIGH7.8
  • PythonPython
  • glances
NoNoMar 30, 2026
CVE-2026-34070HIGH7.5
  • PythonPython
  • langchain-core
NoYesMar 31, 2026
CVE-2026-34231MEDIUM6.1
  • PythonPython
  • slippers
NoYesMar 30, 2026
CVE-2026-34073LOW1.7
  • PythonPython
  • apache-beam-python-3.13-sdk
NoYesMar 31, 2026
GHSA-955r-262c-33jcCRITICALN/A
  • PythonPython
  • telnyx
NoNoMar 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management