Skip to main content

Scapy EUVDEUVD-2026-125054

| CVE-2026-128238 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-11-13 VulnCheck GHSA-f6c2-ff6x-vmmq
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-based parser over network
  2. Exploit
    Send 833-byte 250-level nested SEQUENCE packet
  3. Execution
    Trigger unbounded BER decoder recursion
  4. Impact
    Unhandled RecursionError crashes parser process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires that the target application actually feed attacker-controlled, untrusted BER/ASN.1-encoded data into Scapy's decoder - i.e. it uses a code path such as TLS certificate/handshake parsing (scapy/layers/tls/), SNMP (scapy/layers/snmp.py), X.509 (scapy/layers/x509.py), or LDAP (scapy/layers/ldap.py) on data sourced from the network. No authentication, privileges, user interaction, or non-default configuration is needed (PR:N/UI:N/AC:L), and the documented safe=True parameter explicitly does NOT limit nesting depth, so it provides no mitigation. The principal limiting factor is deployment shape rather than attacker prerequisites: Scapy installed only for packet crafting or on trusted input is not exposed; the realistic risk is confined to long-running services that parse untrusted traffic (IDS, passive analyzers, protocol dissectors, honeypots). A single 833-byte packet (250 nested SEQUENCEs) suffices, and depth as low as the 100-250 range is the crash threshold shown in the PoC.

Impact

This is a genuine but bounded denial-of-service issue, not a critical emergency. The assigned CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L, 6.9 Medium) describes a remote, network-reachable, low-complexity, unauthenticated attack with no confidentiality or integrity impact and only availability affected - consistent with the CWE-674 uncontrolled-recursion crash in the BER/ASN.1 decoder. Note an internal discrepancy: the vulnerable-system availability is scored VA:L (partial) in the assigned 4.0 vector, while the GHSA advisory text self-rates the equivalent CVSS 3.1 as A:H (7.5), reflecting that a single repeatable 833-byte packet can terminate a long-running parser process faster than it restarts - so real-world availability impact on an exposed service is closer to High than the VA:L label suggests. No KEV listing and no EPSS score are present in the input, so there is no signal of active or widespread exploitation; a working proof-of-concept is published in the vendor GHSA advisory with demonstrated crash output. The vuln.today decision label is 'this_month' (not act_now/emergency), which matches the picture: a patched, impact-limited DoS worth scheduled remediation rather than crisis response. The practical risk is concentrated in a specific population - applications that use Scapy to parse untrusted, attacker-supplied TLS/SNMP/X.509/LDAP traffic (IDS, passive analyzers, honeypots) - rather than every Scapy installation.

Exploit ScenarioDerived

An attacker sends a single unauthenticated 833-byte packet containing 250 nested ASN.1 SEQUENCE structures to a network service that uses Scapy to dissect untrusted TLS, SNMP, X.509, or LDAP traffic (for example a passive IDS, traffic analyzer, or honeypot). The malformed input drives Scapy's BERcodec_SEQUENCE decoder into unbounded recursion, raising an unhandled RecursionError that terminates the parsing process; because AC is low and no privileges or user interaction are needed, the packet can be replayed to keep the service down. A working proof-of-concept with demonstrated crash output 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 stems from unbounded recursion in the BER/ASN.1 decoder: a single 833-byte packet containing 250 nested SEQUENCE structures raises an unhandled RecursionError and terminates the parsing process, affecting TLS, SNMP, X.509 and LDAP parsers even when safe=True is used. The independent assessment rates it CVSS 3.1 7.5 High (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H); exposure is bounded to applications that actually feed untrusted BER/ASN.1 data into Scapy, and the vendor advisory includes a tested PoC against Scapy 2.7.0 while no CISA KEV listing is present. The vuln.today priority is this_month, and this is a genuine but bounded denial-of-service issue, not a critical emergency.

RemediationAI

Vendor-released patch: Scapy 2.8.0. Upgrade to Scapy 2.8.0 or later; the package data lists fixed in 2.8.0 and the vendor advisory is https://github.com/secdev/scapy/security/advisories/GHSA-456h-w4v7-hvpr. The advisory's suggested fix adds a configurable maximum BER nesting depth (for example 50) and raises BER_Decoding_Error beyond it; until 2.8.0 is deployed, safe=True does not limit nesting and does not mitigate the crash. If upgrading cannot be done immediately, do not feed untrusted BER/ASN.1-encoded traffic into Scapy's TLS, SNMP, X.509 or LDAP parsers, and run any necessary parsing in a supervised subprocess that can be restarted; this reduces the persistence of the denial of service but does not eliminate the crash.

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

Scapy's BER/ASN.1 decoder is the component at issue: BERcodec_SEQUENCE.do_dec() calls BERcodec_Object.dec() for each nested element, and when the element is another SEQUENCE the dispatch returns to do_dec(), creating mutual recursion with no depth counter, maximum nesting limit or size guard. CWE-674 describes this as uncontrolled recursion. The safe parameter only checks a subset of malformed length and type fields and does not constrain nesting, so safe=True provides no protection. The same code path is reached by scapy/layers/tls/, scapy/layers/snmp.py, scapy/layers/x509.py and scapy/layers/ldap.py; the advisory's crash table shows 100 nested SEQUENCEs (239 bytes) still parse, while 250 (833 bytes) crashes with a RecursionError after roughly 3,995 frames. The advisory's suggested code fix adds a configurable maximum BER nesting depth (for example 50) and raises BER_Decoding_Error beyond it, consistent with other ASN.1 parsers such as OpenSSL capping SEQUENCE nesting at 32.

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 7.5 HIGH

Remote single-packet trigger with no auth or interaction gives AV:N/AC:L/PR:N/UI:N; the repeatable process-terminating crash with no data impact yields A:H, C:N, I:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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 an uncontrolled recursion vulnerability in the BER/ASN.1 decoder in scapy/asn1/ber.py that allows unauthenticated remote attackers to crash parsing applications. Attackers can send a single 833-byte packet with 250 nested ASN.1 SEQUENCE structures to trigger an unhandled RecursionError, terminating TLS, SNMP, X.509, or LDAP parsers even with safe=True.

Threat Intelligence Overview

EPSS Score
0.5%
Top 55% exploitable
Prevalence
Medium
popular Python packet library, but untrusted-traffic parsers are a narrower subset
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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

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