CVE-2026-128238

Scapy before 2.8.0 Uncontrolled Recursion DoS via BER SEQUENCE Decoder

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

Analysis

AI-generated

Technical impact

Scapy versions prior to 2.8.0 use a BER/ASN.1 decoder that does not enforce a recursion depth limit. An attacker can send a single 833‑byte packet containing 250 nested ASN.1 SEQUENCE structures. The decoder enters deep recursion, raises an unhandled RecursionError, and crashes any parsing application that receives the packet. Head‑quarter extraneous TLS, SNMP, X.509, or LDAP parsers terminate, causing a denial of service to users who rely on these protocols.

Affected Systems

The vulnerability affects the Scapy packet manipulation framework developed by secdev. Any deployment running Scapy 2.7.x or earlier is vulnerable. The problem does not extend to Scapy 2.8.0 and later, which include a recursion‑guard in the decoder.

Risk and Exploitability

The CVSS base score of 6.9 indicates a moderate severity. The EPSS score, reported as less than 1 %, suggests that the exploitation probability is very low in the current environment and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a remote, unauthenticated attacker who can craft and send the offending packet to a host running a Scapy‑based parser. Any service that accepts external ASN.1 data is at risk; the impact is a service crash and loss of availability for that component.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Scapy to version 2.8.0 or later, which adds a recursion limit to the BER decoder.
  • If an upgrade cannot be performed immediately, block or drop packets that exceed a reasonable size threshold and do not contain valid ASN.1 headers before they reach the parser.
  • Configure the host to monitor for RecursionError exceptions in logs and automatically restart affected services to restore availability quickly.

Generated by OpenCVE AI on November 14, 2026 at 18:41 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': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Scapy before 2.8.0 Uncontrolled Recursion DoS via BER SEQUENCE Decoder
First Time appeared Scapy
Scapy scapy
Weaknesses CWE-674
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

Sources

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