Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious .pkl.gz with __reduce__ payload
-
ExploitDeliver via shared folder or social engineering
-
ExecutionVictim loads session with -s option
-
Impactpickle.load executes embedded Python as user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the victim actively use Scapy's session feature and load an attacker-controlled gzip-pickle session file (.pkl.gz) either via the '-s' command-line option or programmatically through conf.session; there is no validation on the deserialized object, so any __reduce__() payload runs immediately. Limiting factors are significant: local attack vector (the file must reach the victim's host), active user interaction is mandatory (the user must be tricked into loading the specific malicious file), the attacker needs an existing foothold or delivery channel (AT:P / PR:L), and sessions are a non-default, opt-in workflow - users who never load session files are not exposed. |
| Impact | This is a medium-severity, socially-engineered local code execution flaw, not an emergent remote threat. The CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:L/UI:A) confirms the mechanism requires local vector, a present attack requirement (AT:P), existing privileges (PR:L), and ACTIVE user interaction (UI:A) - the victim must be convinced to manually load an attacker-supplied session file. All three vulnerable-system impacts are High (VC:H/VI:H/VA:H) because successful pickle deserialization yields full arbitrary Python code execution in the victim's context. No EPSS score, KEV listing, or confirmed working PoC is present in the input; the references are vendor/VulnCheck advisories that explain the mechanism but are not flagged as working exploit code. The vuln.today Decision label is 'this_month' (not act_now/emergency), consistent with a real but non-urgent, interaction-gated issue. Bottom line: a genuine RCE primitive (pickle __reduce__) but gated behind social engineering and use of a non-default feature, so it is a priority-to-patch-this-cycle item rather than a drop-everything emergency. One data note: the package feed line states 'fixed in: not yet patched', which conflicts with the EUVD/advisory statement that 2.7.0 removes the session mechanism - see confidence_notes. |
| Exploit ScenarioDerived | An attacker crafts a malicious gzip-compressed pickle session file whose embedded object defines __reduce__() to run arbitrary Python, then drops it in a shared folder or sends it to a target, convincing them it is a legitimate Scapy session. When the victim launches Scapy with './run_scapy -s malicious.pkl.gz' (or loads it via conf.session), pickle.load() immediately executes the embedded code as the victim user. No public working exploit is identified in the input, though the GHSA advisory documents the exact vulnerable code path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Arbitrary code execution in Scapy before 2.7.0 is triggered when a user loads an attacker-controlled gzip-compressed pickle session file (.pkl.gz) via the -s option or conf.session; the deserialized object is not validated, so a crafted __reduce__ payload runs immediately. The attack is local, requires user interaction and a delivery channel for the malicious file, and affects only users who use the non-default session workflow; no public exploit was identified at time of analysis.
RemediationAI
Upgrade to Scapy 2.7.0 or later, where the session mechanism has been removed; see the vendor advisory https://github.com/secdev/scapy/security/advisories/GHSA-cq46-m9x9-j8w2 and the upstream fix commit https://github.com/secdev/scapy/commit/13621d1145b3435e9d03caf20997107a84435c0b. If upgrading immediately is not possible, stop using Scapy sessions: do not launch Scapy with the -s option and do not set conf.session, and avoid loading .pkl.gz session files from shared or untrusted locations. Because session loading is a non-default, opt-in workflow, users who never load session files are not exposed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Scapy is a Python packet manipulation library. Its load_session code in scapy/main.py (around lines 569-572) calls pickle.load(gzip.open(fname, 'rb')), with a fallback to pickle.load(open(fname, 'rb')), on session files provided through the -s CLI flag or conf.session. Python pickle is not a safe format for untrusted data: during unpickling, a __reduce__ method on a crafted object can invoke arbitrary callables, so a malicious .pkl.gz yields Python code execution. This is CWE-502 (Deserialization of Untrusted Data). The affected CPE is cpe:2.3:a:secdev:scapy:*:*:*:*:*:*:*:*, and EUVD lists the affected range as scapy 0 <2.7.0; the session mechanism was removed in 2.7.0.
Know when Scapy gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Local file-load with mandatory victim interaction (AV:L/UI:R), low attacker privilege matching the vendor (PR:L); pickle execution grants full code execution so C/I/A:H, scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Scapy before 2.7.0 contains an insecure deserialization vulnerability in the load_session function that allows attackers to execute code by supplying a malicious pickle session file. Attackers can trick users into loading a crafted .pkl.gz file via the -s option or conf.session, executing embedded Python code through __reduce__().
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
scapy 2.4.0 is affected by: Denial of Service. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitabl
Denial of service in Scapy before 2.8.0 stems from unbounded recursion in the BER/ASN.1 decoder: a single 833-byte packe
Denial of service in Scapy before 2.8.0 lets remote attackers consume disproportionate CPU - and on Python 3.11+ crash t
EUVD-2025-211318
GHSA-f572-w3j5-2qmc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB