Vulnerability DatabaseGHSA-f4x7-rfwp-v3xw

GHSA-f4x7-rfwp-v3xw
Python vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-f4x7-rfwp-v3xw) affects the picklescan package versions <= 0.0.27, with a fix available in version 0.0.28. The issue involves a missing detection capability when calling the PyTorch function torch.fx.experimental.symbolicshapes.ShapeEnv.evaluateguards_expression, which could be exploited to execute malicious code through pickle files (GitHub Advisory).

Technical details

The vulnerability stems from picklescan's inability to detect potentially dangerous calls to torch.fx.experimental.symbolicshapes.ShapeEnv.evaluateguardsexpression. The attack payload is crafted by implementing a _reduce_ method that returns the symbolicshapes.ShapeEnv.evaluateguardsexpression function along with malicious code as arguments. When the pickle file is loaded after passing picklescan's security check, it can lead to arbitrary code execution (GitHub Advisory).

Impact

The vulnerability affects any organization or individual using picklescan to detect malicious pickle files within PyTorch models. Attackers can embed malicious code in pickle files that bypass detection and execute when loaded. This creates potential for supply chain attacks where infected pickle files could be distributed across machine learning models, APIs, and saved Python objects (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in picklescan version 0.0.28. Users should upgrade to this version or later to ensure protection against this attack vector. The fix includes adding torch.fx.experimental.symbolicshapes.ShapeEnv.evaluateguards_expression to the list of dangerous functions that picklescan detects (GitHub Release).

Additional resources


SourceThis report was generated using AI

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