Skip to main content

Scapy EUVDEUVD-2026-125055

| CVE-2026-128237 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-11-13 VulnCheck GHSA-f9f8-xrcx-w6x5
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach Scapy ASN.1/BER parsing endpoint
  2. Delivery
    Send crafted OID arc with many base-128 continuation bytes
  3. Exploit
    Quadratic accumulation in BER_num_dec / BERcodec_OID.do_dec
  4. Execution
    Exhaust CPU or raise uncaught ValueError (Python 3.11+)
  5. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

Exploitation requires that the target application pass attacker-controlled ASN.1/BER data into Scapy's BER OID decoder (BER_num_dec() / BERcodec_OID.do_dec() in scapy/asn1/ber.py) - for example code paths that decode SNMP or other OID-bearing ASN.1 from the network. No authentication, user interaction, or non-default Scapy configuration is needed once such data reaches the decoder (CVSS PR:N/UI:N/AT:N). Limiting factors: impact is availability-only; the uncaught ValueError crash specifically depends on running Python 3.11+ with its default integer-string conversion limit (~4300 digits), whereas the quadratic CPU-consumption effect applies regardless of Python version; and systems that never feed untrusted ASN.1/BER into Scapy are not exposed.

Impact

Signals are consistent and point to a genuine but moderate-priority issue rather than an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a remotely reachable, unauthenticated, low-complexity flaw with no special attack requirements, which argues for easy triggering. However, impact is constrained to availability only (VC:N/VI:N/VA:L; no confidentiality or integrity loss), and VA:L - not VA:H - reflects that the damage is bounded CPU burn on a single OID field or an uncaught ValueError on one parse path rather than full service destruction. EPSS is not provided in the input and cannot be assessed. The vulnerability is NOT in CISA KEV, so there is no evidence of active exploitation, and the vuln.today Decision label is 'this_month' (not act_now/emergency), consistent with a patch-on-normal-cadence posture. A functional proof-of-concept reproducer is published inside the vendor GHSA advisory, and the maintainers supplied scaling measurements confirming superlinear (trending ~4x per input doubling) cost, so exploitability is well substantiated even without KEV. The practical gate on real-world risk is exposure: impact only materializes in applications that feed attacker-controlled ASN.1/BER (e.g. SNMP) into Scapy's decoder - a real but narrower population than Scapy's overall install base. Net: credible, easy-to-trigger DoS worth patching within the stated window, not a drop-everything confidentiality/RCE emergency.

Exploit ScenarioDerived

An application uses Scapy to parse untrusted ASN.1/BER input (for example SNMP traffic) from the network. A remote, unauthenticated attacker sends a single OID field whose arc contains thousands of base-128 continuation bytes; decoding it drives quadratic CPU consumption, and on Python 3.11+ the subsequent integer-to-string conversion raises an uncaught ValueError that crashes the parse path. A working proof-of-concept reproducer is published in the vendor's GHSA advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Denial of service in Scapy before 2.8.0 lets remote attackers consume disproportionate CPU - and on Python 3.11+ crash the parse path with an uncaught ValueError - by supplying ASN.1 BER object identifiers whose arcs carry a long run of base-128 continuation bytes. Exposure is limited to applications that pass attacker-controlled ASN.1/BER, such as SNMP or other OID-bearing traffic received from the network, into Scapy's BER OID decoder; once that data reaches the decoder no authentication or user interaction is required, and the impact is availability-only (vendor CVSS 4.0 base score 6.9; assessed CVSS 3.1 AV:N/AC:L/PR:N/UI:N/C:N/I:N/A:L). The vendor advisory publishes a working proof-of-concept that triggers the ValueError and includes scaling measurements, and fixed code ships in Scapy 2.8.0; there is no CISA KEV entry and the priority decision is this_month, so this reads as a genuine but moderate-priority issue rather than an emergency.

RemediationAI

Upgrade to Scapy 2.8.0, the vendor-fixed release, following the advisory at https://github.com/secdev/scapy/security/advisories/GHSA-xx44-g48m-mjp6; this is the only complete fix because the superlinear cost is inherent to the current decoder logic. If an immediate upgrade is not possible, the effective interim control is exposure reduction rather than code change: keep code paths that decode untrusted BER - SNMP listeners, protocol parsers, fuzz harnesses - off untrusted networks or behind filtering until the library is updated, recognising that this limits coverage for any remaining legitimate peer that must still reach the decoder. Where the decoder must stay reachable, add a length cap on OID arcs (reject identifiers whose arcs exceed a small number of base-128 continuation bytes) before the BER decoder is invoked; the trade-off is that unusually long but technically valid arcs will be refused, so the limit must be chosen against real traffic. Note that raising sys.set_int_max_str_digits avoids only the Python 3.11+ ValueError crash and does not remove the quadratic CPU consumption, so it is not a substitute for upgrading.

Affected VersionsENISA

scapy 0 <2.8.0

Affected Packages

euvd scapy fix: 2.8.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw sits in Scapy's ASN.1/BER handling in scapy/asn1/ber.py, specifically BER_num_dec() and BERcodec_OID.do_dec(), and is a CWE-407 inefficient-algorithm-complexity problem. An object identifier arc is decoded by accumulating base-128 continuation bytes into a Python integer with x <<= 7 per byte; the integer then gets rendered to decimal text via str(k), and that conversion cost grows superlinearly with the number of bytes, so a single oversized arc yields roughly quadratic CPU time. The advisory's own measurements show median decode time rising from 0.181 ms at 1K bytes to 1063.728 ms at 128K bytes, with each input doubling costing about 3.9x instead of the 2x a linear decoder would show. Only decoders that accept attacker-controlled BER are affected - typically network-facing code paths that parse SNMP or other OID-bearing ASN.1 through Scapy - and no non-default Scapy configuration, credential or user action is involved once that data arrives. The two observed effects differ by runtime: the quadratic CPU consumption applies on any Python version, whereas the uncaught ValueError comes from Python 3.11+'s default integer-to-string conversion limit (about 4300 digits) and therefore only manifests on those interpreters unless that limit has been changed. CPE cpe:2.3:a:secdev:scapy:*:*:*:*:*:*:*:* and EUVD-2026-125055 record the same affected range, all Scapy releases below 2.8.0.

Know when Scapy gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 5.3 MEDIUM

Remotely reachable decoder reached with untrusted ASN.1/BER, no auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is bounded CPU burn or a single-parse crash, so A:L and C/I:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 13, 2026 - 10:02 EUVD

DescriptionCVE.org

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+.

Threat Intelligence Overview

EPSS Score
0.5%
Top 56% exploitable
Prevalence
Medium
widely used Python packet library, narrower production untrusted-ASN.1-parsing footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy