CVE-2026-128237

Scapy before 2.8.0 Denial of Service via Quadratic BER OID Decoding

Published Nov 13, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
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+.

Analysis

AI-generated

Technical impact

Scapy, as distributed before version 2.8.0, contains a flaw in the BER_num_dec() and BERcodec_OID.do_dec() functions that permits a remote attacker to force the library into a denial of service condition. By sending ASN.1/BER data that includes oversized OID arcs with many base‑128 continuation bytes, the decoder can consume CPU time quadratically or trigger an uncaught ValueError crash on Python 3.11 and newer. The result is a denial of service with no impact on confidentiality or integrity.

Affected Systems

The vulnerability applies to the Scapy package from the secdev project for all versions prior to 2.8.0. Updated releases (2.8.0 and later) have removed the vulnerable code paths.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate to high severity. The EPSS score is below 1%, suggesting that exploitation in the wild is unlikely, and the flaw is not listed in CISA's KEV catalog. Nevertheless, because the issue can be triggered remotely via crafted ASN.1/BER payloads sent over a network, an attacker can exhaust CPU resources without needing privileged access, potentially taking affected services offline.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Scapy to version 2.8.0 or newer, which contains the fixed BER decoding logic.
  • If an immediate upgrade cannot be performed, apply network-level filtering or rate limiting to curb the volume of incoming ASN.1/BER traffic from untrusted sources and monitor system CPU usage to detect abnormal load, automatically restarting or alerting when thresholds are exceeded.
  • Review any custom or legacy code that may still invoke the vulnerable BER_num_dec() or BERcodec_OID.do_dec() functions and replace or remove those calls, or enforce stricter input validation to mitigate the quadratic complexity attack surface.

Generated by OpenCVE AI on November 14, 2026 at 18:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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+.
Title Scapy before 2.8.0 Denial of Service via Quadratic BER OID Decoding
First Time appeared Scapy
Scapy scapy
Weaknesses CWE-407
CPEs cpe:2.3:a:scapy:scapy:*:*:*:*:*:*:*:*
Vendors & Products Scapy
Scapy scapy
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 17, 2026, 1:21 PM
Reserved
Nov 12, 2026, 11:11 PM
Status
Awaiting Analysis
Published
Nov 13, 2026, 10:18 AM
Modified
Nov 17, 2026, 2:17 PM