CVE-2026-128238 Scapy before 2.8.0 Uncontrolled Recursion DoS via BER SEQUENCE Decoder
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-128238?
CVE-2026-128238 is a medium-severity vulnerability in secdev scapy, published on 13 Nov 2026.
Official 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.
Weakness: CWE-674
Which versions are affected by CVE-2026-128238?
1 open source package ship an affected version, including scapy.
| Package | Affected | Fixed in |
|---|---|---|
scapy PyPIpkg:pypi/scapy | All versions | 2.8.0 |
How do I fix CVE-2026-128238?
Upgrade scapy to 2.8.0 or later.
Is CVE-2026-128238 being exploited?
There is no known exploitation of CVE-2026-128238 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-128238, GHSA-456h-w4v7-hvpr, GHSA-f6c2-ff6x-vmmq, UBUNTU-CVE-2026-128238.