{"id":"CVE-2025-71463","kind":"vulnerability","aliases":["CVE-2025-71463"],"related":[],"title":"Scapy: loading a crafted session file runs attacker's Python code","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__().","summary":"Scapy before 2.7.0 unpickles session files in its load_session function without checks. A crafted .pkl.gz session file can execute embedded Python code when a user loads it with the -s option or conf.session.","severity":"medium","cvss":6.7,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"scapy","fixed":[],"affected":"","ecosystem":"pypi"}],"ecosystems":["pypi"],"tags":["package","python","scapy","security-tools"],"not_affected_if":["no-session-loading","scapy-2.7.0-or-later"],"how_to_check":"- Check the installed Scapy version with `pip show scapy` or `python -c \"import scapy; print(scapy.VERSION)\"`\n- Look for session files loaded with `-s` or `conf.session` from untrusted sources","fix":"- Scapy `2.7.0` or later (from the sources' fixed version)","status":"open","published_at":"2026-11-13T10:17:24+00:00","first_seen_at":"2026-11-13T10:47:09+00:00","triaged_at":"2026-11-13T10:54:56+00:00","updated_at":"2026-11-13T10:54:56+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-13T10:54:56Z","model":"claude-haiku-5-5","output":{"fix":"- Scapy `2.7.0` or later (from the sources' fixed version)","reach":"local","title":"Scapy: loading a crafted session file runs attacker's Python code","impact":"high","summary":"Scapy before 2.7.0 unpickles session files in its load_session function without checks. A crafted .pkl.gz session file can execute embedded Python code when a user loads it with the -s option or conf.session.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","scapy","security-tools"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"code runs as the user who loads the file","analyst_note":"","how_to_check":"- Check the installed Scapy version with `pip show scapy` or `python -c \"import scapy; print(scapy.VERSION)\"`\n- Look for session files loaded with `-s` or `conf.session` from untrusted sources","plain_action":"","product_name":"scapy","needs_analyst":false,"not_affected_if":["no-session-loading","scapy-2.7.0-or-later"],"who_is_affected":"Anyone who runs Scapy below 2.7.0 and loads session files that were not created locally. The risk depends on opening session files from outside sources; using Scapy without loading saved sessions is not affected. Teams that only run Scapy on their own captured sessions can deprioritize it.","user_interaction":"yes","product_ecosystem":"pypi","needs_special_setup":"no","severity_if_unknown":"unknown"},"cost_usd":0.000722,"input_tokens":4598,"output_tokens":524,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2025':13A,16A '-71463':14A,17A '2.7.0':27B,61C 'allow':73C 'attack':8A,74C,85C 'check':37B 'code':11A,47B,77C,104C 'conf.session':58B,100C 'contain':62C 'craft':4A,39B,92C 'cve':12A,15A 'deseri':65C 'embed':45B,102C 'execut':44B,76C,101C 'file':6A,30B,42B,84C,94C 'function':35B,71C 'insecur':64C 'load':2A,33B,51B,69C,90C 'malici':81C 'option':56B,98C 'packag':19B 'pickl':82C 'pkl.gz':40B,93C 'python':10A,20B,46B,103C 'reduc':106C 'run':7A 'scapi':1A,21B,25B,59C 'scapy':18A 'secur':23B 'security-tool':22B 'session':5A,29B,34B,41B,70C,83C 'suppli':79C 'tool':24B 'trick':87C 'unpickl':28B 'user':50B,88C 'via':95C 'vulner':66C 'without':36B","nicknames":[],"mitigations":[],"who_affected":"Anyone who runs Scapy below 2.7.0 and loads session files that were not created locally. The risk depends on opening session files from outside sources; using Scapy without loading saved sessions is not affected. Teams that only run Scapy on their own captured sessions can deprioritize it.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["scapy"],"ptokens":["scapy"],"labels":["medium","package","pypi","python","scapy","securitytools"],"campaign_type":null,"search_a":"'-2025':13A,16A '-71463':14A,17A 'attack':8A 'code':11A 'craft':4A 'cve':12A,15A 'file':6A 'load':2A 'python':10A 'run':7A 'scapi':1A 'scapy':18A 'session':5A","search_b":"'2.7.0':27B 'check':37B 'code':47B 'conf.session':58B 'craft':39B 'embed':45B 'execut':44B 'file':30B,42B 'function':35B 'load':33B,51B 'option':56B 'packag':19B 'pkl.gz':40B 'python':20B,46B 'scapi':21B,25B 'secur':23B 'security-tool':22B 'session':29B,34B,41B 'tool':24B 'unpickl':28B 'user':50B 'without':36B","search_c":"'2.7.0':61C 'allow':73C 'attack':74C,85C 'code':77C,104C 'conf.session':100C 'contain':62C 'craft':92C 'deseri':65C 'embed':102C 'execut':76C,101C 'file':84C,94C 'function':71C 'insecur':64C 'load':69C,90C 'malici':81C 'option':98C 'pickl':82C 'pkl.gz':93C 'python':103C 'reduc':106C 'scapi':59C 'session':70C,83C 'suppli':79C 'trick':87C 'user':88C 'via':95C 'vulner':66C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2025-10-22T07:20:39+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2025-71463","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71463","severity":null,"published_at":"2026-11-13T10:17:24+00:00","modified_at":"2026-11-13T10:17:24+00:00","first_seen_at":"2026-11-13T10:47:09+00:00","fetched_at":"2026-11-13T10:47:09+00:00","note":null}],"documents":[{"id":144854,"url":"https://github.com/secdev/scapy/security/advisories/GHSA-cq46-m9x9-j8w2","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2025-10-22T07:20:39+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"},{"id":144855,"url":"https://www.vulncheck.com/advisories/scapy-before-2.7.0-insecure-deserialization-rce-via-session-files","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}