Scapy Uncontrolled Recursion DoS via BER SEQUENCE Decoder
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-674.
Summary
Scapy before 2.8.0 contains uncontrolled recursion (CWE-674) in the BER/ASN.1 decoder in scapy/asn1/ber.py. An unauthenticated remote attacker can send a single 833-byte packet with 250 nested ASN.1 SEQUENCE structures to raise an unhandled RecursionError, which terminates TLS, SNMP, X.509, or LDAP parsers even when safe=True is set. CVSS 4.0 base score 6.9 (MEDIUM).
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Update Scapy to 2.8.0, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA scapy (secdev) Fixed in 2.8.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
secdev scapy 2.8.0
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2026-91461 Scapy Denial of Service via Quadratic BER OID DecodingPriority LOW 31
Timeline
- 2026-11-13 Threatist record created from CVE-2026-128238
- 2026-11-13 Alias added: GHSA-f6c2-ff6x-vmmq
- 2026-11-13 CISA SSVC decision points changed
References
More secdev vulnerabilities
- TI-2026-91461 Scapy Denial of Service via Quadratic BER OID Decoding CVSS 4.0MEDIUM 6.9
- TI-2025-44071 Insecure deserialization in Scapy lets crafted session files run code CVSS 4.0MEDIUM 5.4
Sources
- CVE-2026-128238 · CVE Program
- CVE-2026-128238 · NVD
- FIRST EPSS
- GHSA-f6c2-ff6x-vmmq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences