Description
Scapy before 2.8.0 contains an uncontrolled recursion vulnerability in the BER/ASN.1 decoder in scapy/asn1/ber.py that allows unauthenticated remote attackers to crash parsing applications. Attackers can send a single 833-byte packet with 250 nested ASN.1 SEQUENCE structures to trigger an unhandled RecursionError, terminating TLS, SNMP, X.509, or LDAP parsers even with safe=True.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| secdev | scapy | < 2.8.0 | 2.8.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.8.0+dfsg-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 | — |
References
- GitHub Security Advisory (GHSA-456h-w4v7-hvpr) vendor-advisory
- VulnCheck Advisory: Scapy before 2.8.0 Uncontrolled Recursion DoS via BER SEQUENCE Decoder third-party-advisory