CVE-2026-128238Scapy before 2.8.0 Uncontrolled Recursion DoS via BER SEQUENCE Decoder
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | scapy | Fix pending | UBUNTU-CVE-2026-128238 | |
| Ubuntu 26.04 | scapy | Under investigation | UBUNTU-CVE-2026-128238 | |
| Ubuntu 24.04 | scapy | Under investigation | UBUNTU-CVE-2026-128238 | |
| Ubuntu 22.04 | scapy | Under investigation | UBUNTU-CVE-2026-128238 | |
| Ubuntu 20.04 | scapy | Fix pending | UBUNTU-CVE-2026-128238 | |
| Ubuntu 18.04 | scapy | Fix pending | UBUNTU-CVE-2026-128238 | |
| Ubuntu 16.04 | scapy | Fix pending | UBUNTU-CVE-2026-128238 | |
| Debian 14 | scapy | Fixed | 2.8.0+dfsg-1 | DEBIAN-CVE-2026-128238 |
| Debian 13 | scapy | Fix pending | DEBIAN-CVE-2026-128238 | |
| Debian 12 | scapy | Fix pending | DEBIAN-CVE-2026-128238 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- secdev scapy: affected: before 2.8.0, 2.8.0 not affected; fixed in
2.8.0
Vendor advisories:
- https://github.com/secdev/scapy/security/advisories/GHSA-456h-w4v7-hvpr (vendor-advisory)
References
- https://github.com/secdev/scapy/security/advisories/GHSA-456h-w4v7-hvpr
- https://www.vulncheck.com/advisories/scapy-before-2.8.0-uncontrolled-recursion-dos-via-ber-sequence-decoder
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.