CVE-2025-71463

Scapy before 2.7.0 Insecure Deserialization RCE via Session Files

Published Nov 13, 2026 CVSS 4.0 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
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__().

Analysis

AI-generated

Technical impact

Scapy prior to version 2.7.0 contains an insecure deserialization flaw within the load_session function. The vulnerability allows an attacker to provide a crafted pickle session file that, when loaded, executes arbitrary Python code via the __reduce__() method. Successful exploitation would grant the attacker full code execution privileges on the host system, enabling compromise of confidentiality, integrity, and availability.

Affected Systems

All installations of the Scapy tool released before the 2.7.0 update are affected, regardless of operating system. The issue resides within the Scapy library itself, so any user or service that imports Scapy and calls load_session using the -s command‑line option or sets conf.session to an untrusted file is vulnerable.

Risk and Exploitability

The cvss score of 5.4 indicates moderate severity, while an EPSS score of less than 1 percent suggests that the likelihood of a real‑world exploit is low at present. The vulnerability is not listed in CISA KEV. Exploitation requires the attacker to get a user to load a malicious session file, typically through social engineering or by providing a compromised file to an automated script. Once the file is processed by an affected version of Scapy, attacker‑controlled code is executed with the privileges of the running process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Scapy to version 2.7.0 or later, which removes the insecure pickle deserialization in load_session.
  • If upgrading is not immediately possible, restrict the use of the -s option and the conf.session setting to trusted sources only and consider disabling or removing any code paths that call load_session with external input.
  • Audit all code that interfaces with Scapy and replace or secure any load_session usages, for example by validating file contents or using safe deserialization techniques.

Generated by OpenCVE AI on November 14, 2026 at 11:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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__().
Title Scapy before 2.7.0 Insecure Deserialization RCE via Session Files
First Time appeared Scapy
Scapy scapy
Weaknesses CWE-502
CPEs cpe:2.3:a:scapy:scapy:*:*:*:*:*:*:*:*
Vendors & Products Scapy
Scapy scapy
References
Metrics cvssV3_1

{'score': 6.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 5.4, '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'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 13, 2026, 8:35 PM
Reserved
Nov 12, 2026, 11:12 PM
Status
Received
Published
Nov 13, 2026, 10:17 AM
Modified
Nov 13, 2026, 11:10 PM