Read the docs

Scapy Denial of Service via Quadratic BER OID Decoding

Priority LOW 31CWE-407Published · Updated

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

EPSS 0.00371 31st percentileScored 2026-11-16
Fix Fixed scapy (secdev): 2.8.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
secdevscapybefore 2.8.02.8.0Patch availableCNA
  • scapy Vendorsecdev Affected before 2.8.0 Fixed in 2.8.0 Patch available CNA

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

  1. 2026-11-13 Threatist record created from CVE-2026-128237
  2. 2026-11-13 Alias added: GHSA-f9f8-xrcx-w6x5

References

  • 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