Skip to main content

Scapy CVE-2025-71463

| EUVDEUVD-2025-211318 MEDIUM
Deserialization of Untrusted Data (CWE-502)
2026-11-13 VulnCheck GHSA-f572-w3j5-2qmc
5.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious .pkl.gz with __reduce__ payload
  2. Exploit
    Deliver via shared folder or social engineering
  3. Execution
    Victim loads session with -s option
  4. Impact
    pickle.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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

scapy 0 <2.7.0

Affected Packages

pypi scapy fix: 2.7.0

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

Vendor (VulnCheck) PRIMARY 5.4 MEDIUM
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
vuln.today AI 7.3 HIGH

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.

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 13, 2026 - 10:02 EUVD

DescriptionCVE.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

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Medium
Scapy is a very popular Python packet library, but session loading is a niche, opt-in feature
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy