Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Scapy ASN.1/BER parsing endpoint
-
DeliverySend crafted OID arc with many base-128 continuation bytes
-
ExploitQuadratic accumulation in BER_num_dec / BERcodec_OID.do_dec
-
ExecutionExhaust CPU or raise uncaught ValueError (Python 3.11+)
-
ImpactDenial 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
scapy 2.4.0 is affected by: Denial of Service. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitabl
Denial of service in Scapy before 2.8.0 stems from unbounded recursion in the BER/ASN.1 decoder: a single 833-byte packe
Arbitrary code execution in Scapy before 2.7.0 is triggered when a user loads an attacker-controlled gzip-compressed pic
EUVD-2026-125055
GHSA-f9f8-xrcx-w6x5
NVD
CVE.org
EPSS
Exploit-DB