Scapy Denial of Service via Quadratic BER OID Decoding
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-407.
Summary
Scapy versions before 2.8.0 contain a denial of service flaw in BER_num_dec() and BERcodec_OID.do_dec(), tracked as CWE-407 (Inefficient Algorithmic Complexity). A remote attacker can send ASN.1/BER data with many base-128 continuation bytes in an oversized OID arc, causing quadratic CPU consumption. On Python 3.11 and later, the same input can also trigger an uncaught ValueError that crashes the process. The CVSS 4.0 base score is 6.9 (MEDIUM), and CISA has not added it to KEV.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
Scapy before 2.8.0 contains a denial of service vulnerability in BER_num_dec() and BERcodec_OID.do_dec() that allows remote attackers to exhaust CPU by supplying oversized OID arcs. Attackers can send ASN.1/BER data with many base-128 continuation bytes to cause quadratic CPU consumption or an uncaught ValueError crash on Python 3.11+.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade scapy to version 2.8.0 or later, which fixes the 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-91462 Scapy Uncontrolled Recursion DoS via BER SEQUENCE DecoderPriority LOW 37
Timeline
- 2026-11-13 Threatist record created from CVE-2026-128237
- 2026-11-13 Alias added: GHSA-f9f8-xrcx-w6x5
References
More secdev vulnerabilities
- TI-2026-91462 Scapy Uncontrolled Recursion DoS via BER SEQUENCE Decoder 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-128237 · CVE Program
- CVE-2026-128237 · NVD
- FIRST EPSS
- GHSA-f9f8-xrcx-w6x5 · 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