Register for the AI for Security Summit: Join Figma, Perplexity & Wiz
Vulnerability DatabaseGHSA-v7x6-rv5q-mhwc

GHSA-v7x6-rv5q-mhwc
Python vulnerability analysis and mitigation

Overview

A security vulnerability (GHSA-v7x6-rv5q-mhwc) was discovered in picklescan versions below 0.0.25, where the library failed to detect malicious code execution through the built-in Python library function timeit.timeit(). The vulnerability was disclosed on April 6, 2025, and affects organizations and individuals relying on picklescan to detect malicious pickle files inside PyTorch models (GitHub Advisory).

Technical details

The vulnerability stems from picklescan's inability to detect potentially dangerous code execution when the timeit.timeit() function is called via Python's pickle deserialization process. The attack leverages the reduce method to execute arbitrary code through the timeit library, which wasn't included in picklescan's unsafe globals blacklist. The vulnerability has been assigned a CVSS v4 score of 5.3 (Moderate severity), with attack vector being Network, attack complexity Low, and requiring Passive user interaction (GitHub Advisory).

Impact

The vulnerability enables attackers to embed malicious code in pickle files that remain undetected by picklescan but execute when the pickle file is loaded. This can lead to remote code execution and potential supply chain attacks, where infected pickle files could be distributed across ML models, APIs, or saved Python objects. The impact primarily affects the integrity of the vulnerable system while maintaining no direct impact on confidentiality or availability (GitHub Advisory).

Exploitability

The vulnerability is exploitable through a crafted pickle file that uses the timeit.timeit() function. An attacker can create a payload that calls timeit.timeit() in the reduce method, which can then import dangerous libraries like os and execute system commands. When victims scan the malicious file with picklescan, it appears safe due to the missing detection, leading them to load the file and trigger the malicious code execution (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in picklescan version 0.0.25 by adding the timeit library to the unsafe globals blacklist. Users are advised to upgrade to this version or later to protect against this vulnerability (GitHub Release).

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-61599HIGH8.8
  • Python logoPython
  • djust
NoYesSep 16, 2026
CVE-2026-61596HIGH7.1
  • Python logoPython
  • djust
NoYesSep 16, 2026
CVE-2026-61588MEDIUM6.5
  • Python logoPython
  • djust
NoYesSep 16, 2026
CVE-2026-61589MEDIUM6.3
  • Python logoPython
  • djust
NoYesSep 16, 2026
CVE-2026-61597MEDIUM5.1
  • Python logoPython
  • djust
NoYesSep 16, 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