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__().
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| secdev | scapy | < 2.7.0 | 2.7.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | scapy | 2.7.0+dfsg1-1 | — |
| Debian 13 | scapy | No fix yet | — |
| Debian 12 | scapy | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | scapy | No fix yet | — |
| Ubuntu 26.04 LTS | scapy | No fix yet | — |
| Ubuntu 24.04 LTS | scapy | No fix yet | — |
| Ubuntu 22.04 LTS | scapy | No fix yet | — |
| Ubuntu 20.04 LTS | scapy | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | scapy | No fix yet | — |
| Ubuntu 16.04 LTS | scapy | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | scapy | <= 2.6.1 | — | GHSA-cq46-m9x9-j8w2 |
References
- GitHub Security Advisory (GHSA-cq46-m9x9-j8w2) vendor-advisory
- VulnCheck Advisory: Scapy before 2.7.0 Insecure Deserialization RCE via Session Files third-party-advisory