CVE-2026-128238: Scapy before 2.8.0 Uncontrolled Recursion DoS via BER SEQUENCE Decoder

Published Nov 13, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/scapy<2.8.0

Event History

Nov 13, 2026
CVE Published
via MITRE·09:33 AM
Data Sourced
via MITRE·09:33 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:18 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Applications using Scapy's BER/ASN.1 decoder to parse untrusted TLS, SNMP, X.509, or LDAP data are exposed. The issue can be triggered remotely without authentication.

2

Does enabling safe=True prevent exploitation?

No. The vulnerability can terminate affected parsers even when safe=True is enabled.

3

What does an attacker need to send?

An attacker can trigger the condition with a single 833-byte packet containing 250 nested ASN.1 SEQUENCE structures. No privileges or user interaction are required.

4

How can I determine whether an application is affected?

Check whether it uses Scapy versions before 2.8.0 and invokes the BER/ASN.1 decoder on attacker-controlled input. An affected parser may terminate with an unhandled RecursionError when processing deeply nested ASN.1 SEQUENCE data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203