Vulnerability DatabaseGHSA-cq46-m9x9-j8w2

GHSA-cq46-m9x9-j8w2
Python vulnerability analysis and mitigation

Overview

A moderate severity insecure deserialization vulnerability (GHSA-cq46-m9x9-j8w2) was discovered in Scapy versions 2.6.1 and earlier, disclosed on October 22, 2025. The vulnerability exists in the load_session function, which performs unsafe deserialization of pickle data from .pkl.gz files without proper validation (GitHub Advisory).

Technical details

The vulnerability stems from the unsafe use of pickle.load() on potentially malicious .pkl.gz files provided via the -s CLI flag or programmatically through conf.session. The affected code in main.py attempts to deserialize data using pickle.load() without any validation or restrictions on the deserialized object. This vulnerability is classified as CWE-502: Deserialization of Untrusted Data, with a CVSS v4.0 score of 5.4 (Medium) and vector CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (GitHub Advisory).

Impact

The vulnerability enables arbitrary code execution when untrusted data is deserialized. Any user who can trick another user into loading a crafted .pkl.gz session file can execute arbitrary Python code on the target system. The impact affects the confidentiality, integrity, and availability of the vulnerable system with high severity ratings (GitHub Advisory).

Mitigation and workarounds

Users are advised to avoid using the 'sessions' feature (the -s option) when launching Scapy. The recommended solution is to upgrade to Scapy version 2.7.0 or later, where the session mechanism has been completely removed to address this vulnerability (GitHub Advisory, Scapy Commit).

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-2025-62515CRITICAL9.8
  • PythonPython
  • pyquokka
NoNoOct 17, 2025
CVE-2025-62527HIGH7.1
  • PythonPython
  • taguette
NoYesOct 20, 2025
GHSA-cq46-m9x9-j8w2MEDIUM5.4
  • PythonPython
  • scapy
NoNoOct 22, 2025
CVE-2025-62528MEDIUM5.4
  • PythonPython
  • taguette
NoYesOct 20, 2025
GHSA-w476-p2h3-79g9LOWN/A
  • PythonPython
  • uv
NoYesOct 21, 2025

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