SB2026090294 - Multiple vulnerabilities in scapy



SB2026090294 - Multiple vulnerabilities in scapy

Published: September 2, 2026 Updated: November 5, 2026

Security Bulletin ID SB2026090294
CSH Severity
High
Patch available
YES
Number of vulnerabilities 41
Exploitation vector Remote access
Highest impact Data manipulation

Breakdown by Severity

High 2% Medium 32% Low 66%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 41 vulnerabilities.


1) Improper validation of integrity check value (CVE-ID: N/A)

CWE-ID: CWE-354 - Improper Validation of Integrity Check Value

CVSSv4: 7.1 [CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows an on-path attacker to cause Scapy live TLS endpoints to accept attacker-modified, unauthenticated plaintext as application data despite failed record integrity checks. Application logic behind either TLSClientAutomaton or TLSServerAutomaton can process these changes as if they came from the legitimate peer within an established TLS connection. This affects both client-to-server and server-to-client traffic.

The vulnerability exists due to the reuse of permissive offline TLS record dissection behavior by live endpoints without enforcing record integrity. A remote attacker can modify encrypted records while positioned on the network path of an established connection after a program opts into a Scapy TLS automaton and completes a normal handshake. For TLS 1.2 and TLS 1.3 AES-GCM, decryption produces plaintext before tag verification fails; AEADTagError carries that plaintext, and the record parser catches the exception and returns its arguments instead of rejecting the record. For TLS 1.2 CBC and RC4, the parser detects an HMAC mismatch but only logs it and continues processing the decrypted fragment. The automaton then buffers the parsed messages and delivers application data without rejecting the integrity failure.

The record dissectors deliberately preserve decrypted bytes after integrity failures to support offline inspection of damaged captures. The live endpoint method _TLSAutomaton.get_next_msg() uses these same parsers and appends their messages to buffer_in. With AES-GCM and RC4, flipping a ciphertext bit flips the corresponding plaintext bit; with TLS 1.2 CBC, modifying the explicit initialization vector controls corresponding bits in the first plaintext block. The behavior was reproduced for TLS 1.2 AES-GCM, CBC, and RC4, and TLS 1.3 AES-GCM. ChaCha20-Poly1305 and AES-CCM do not expose controlled plaintext through this path. Integrity failures are logged at INFO level, which the default logger level hides, so application data can be processed without a visible integrity-failure warning.


2) Unchecked Return Value (CVE-ID: N/A)

CWE-ID: CWE-252 - Unchecked Return Value

CVSSv4: 6 [CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker on the local network to bypass KDC authentication and cause a Kerberos client to accept an attacker-selected ticket and session key.

The vulnerability exists due to an unchecked signature-verification return value in Scapy's CMS_Engine.verify() function when processing CMS-signed PKINIT replies. A remote attacker on the local network can impersonate or intercept the selected KDC endpoint and send a crafted AS-REP containing an all-zero CMS signature to supply an unauthenticated Diffie-Hellman public value, derive the client's reply key, and cause krb_as_req() to return an attacker-selected ticket and session key.

Exploitation remains possible with certificate verification enabled and the correct trusted CA configured.


3) Path traversal (CVE-ID: N/A)

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to overwrite arbitrary local files and cause a denial of service.

The vulnerability exists due to path traversal in the scapy smbclient recursive download feature when processing directory entries supplied by an SMB server. A remote attacker can supply a malicious directory entry to a user performing a recursive download with get -r to write files outside the intended download directory, overwrite arbitrary local files, and potentially disrupt system operation.

Exploitation requires the remote server to be spoofed or compromised, or authentication to be disabled.


4) Input validation error (CVE-ID: N/A)

CWE-ID: CWE-20 - Improper input validation

CVSSv4: 1.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by stopping TLS server response construction for an affected connection.

The vulnerability exists due to improper input validation in Scapy's _tls_named_groups_import function when importing FFDHE public values from a TLS ClientHello without checking that they fall within 2..p-2. A remote attacker can send a crafted ClientHello offering only ffdhe2048 with a public value of one to trigger a ValueError during shared-secret computation in TLS_Ext_KeyShare_SH and prevent the server response from being emitted.


5) NULL pointer dereference (CVE-ID: N/A)

CWE-ID: CWE-476 - NULL Pointer Dereference

CVSSv4: 1.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service in Scapy TLS client and server endpoints.

The vulnerability exists due to improper handling of a null negotiated TLS version in _TLSAutomaton.get_next_msg when processing application-data records before the TLS handshake. A remote attacker can send the six-byte record 170303000158 before any hello message to trigger a comparison between None and an integer, raising an unhandled TypeError and terminating the active endpoint or client handler.


6) Insufficient verification of data authenticity (CVE-ID: N/A)

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to bypass intended client authentication requirements or downgrade authentication to NONE in Scapy-based DCE/RPC servers using the NCACN_IP_TCP transport, compromising the integrity of authentication enforcement.

The vulnerability exists due to three weaknesses in DCE/RPC authentication handling: Auth3 can update negotiated security parameters in the DCE/RPC client when it should not; failed client authentication on the server is not treated as fatal; and a minimum AUTHN level is not enforced, allowing a downgrade to NONE. A remote attacker can exploit these weaknesses when connecting to an affected RPC server using NCACN_IP_TCP to weaken negotiated authentication or continue despite failed client authentication.

NCACN_IP_TCP is not used by Scapy by default. The affected deployment context is external projects implementing RPC servers with Scapy using this transport.


7) Input validation error (CVE-ID: N/A)

CWE-ID: CWE-20 - Improper input validation

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote LDAP server to terminate a Scapy client's connection after SASL signing or encryption has been negotiated, causing a denial of service on the affected socket. The stream reader stops, the socket is closed, and calls using that socket return no packet rather than waiting for an incomplete record.

The vulnerability exists due to improper validation of incomplete stream data in LDAP_SASL_Buffer.tcp_reassemble. Its plain-LDAP error heuristic performs BER decoding before interpreting the SASL record length, allowing a decoding exception to escape instead of returning None to signal that more data is needed. A remote attacker can send the four bytes 30 84 00 00 while acting as the LDAP peer after SASL signing or encryption is negotiated. The leading byte 30 selects the heuristic, and 84 indicates that four BER length bytes follow, although only two are buffered, triggering the exception.

LDAP_Client.bind switches the existing network socket to the LDAP_SASL_Buffer decoder for length-prefixed protected records, placing the bytes consumed by the stream callback under the remote peer's control. StreamSocket.recv invokes the reassembler before DefaultSession.recv reaches its guarded call, so the exception escapes that session-level handling and causes the socket to close. The failure was reproduced with the default configuration.


8) Input validation error (CVE-ID: N/A)

CWE-ID: CWE-20 - Improper input validation

CVSSv4: 1.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to interrupt Scapy's in-memory offline packet analysis when an application passes attacker-controlled network-origin bytes to sniff(offline=...) as list elements. A nonempty bytes value at the beginning of the list causes the only reader to close before any packets are delivered, dropping all later items, including valid packets. Scapy logs a warning, but the caller receives a normal empty PacketList rather than an exception and must recreate its source.

The vulnerability exists due to improper handling of serialized bytes in IterSocket.recv, which reconstructs each item using pkt.__class__(bytes(pkt), **kwargs). For a bytes element, this returns another bytes object instead of a Scapy packet. A remote attacker can supply network-origin bytes that trigger this failure if an application collects those bytes and passes them in an explicit offline list. The socket and session return successfully, but AsyncSniffer._run subsequently attempts to assign p.sniffed_on, raising AttributeError. The surrounding socket-error handler closes and removes the reader, preventing processing of the remaining list elements.

Scapy supports in-memory Packet, PacketList, and Python list inputs through IterSocket, including an explicit branch for lists of serialized bytes. Any nonempty bytes element can reach the affected branch; malformed packet contents, special sessions, privileges, and configuration changes are not required. Equivalent inputs supplied as actual packet objects are processed normally. The failure occurs after successful socket and session processing, rather than within the session itself.


9) Improper Check or Handling of Exceptional Conditions (CVE-ID: N/A)

CWE-ID: CWE-703 - Improper Check or Handling of Exceptional Conditions

CVSSv4: 1.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows loss of availability of Scapy offline capture processing: malformed capture data can silently hide subsequent packets or abort reading without returning packets already decoded. A valid gzip capture supplied through a named non-seekable stream can also fail before any packet is extracted. The demonstrated impact is limited to capture-processing availability, without confidentiality loss, modification, code execution, or persistence after a retry.

The vulnerability exists due to five distinct record-framing and exception-handling defects in scapy/utils.py. A remote attacker can supply capture data that triggers these failures when a user or application opens it with the corresponding offline reader; the non-seekable-stream case additionally requires delivery through a named pipe or equivalent input. In PCAPNG, an Enhanced Packet Block referencing an undeclared interface causes _check_interface_id() to raise EOFError, which terminates the entire iterator rather than skipping the block and silently hides valid later packets. In ERF, a Type ETH record with rlen=0 produces a negative payload-read length; Python consumes the following record, returning a bogus packet and losing the legitimate later packet without an initial exception. For gzip-compressed PCAP, a corrupted trailing CRC raises BadGzipFile during the next-header read outside the exception handler, preventing return of the list even after packets have been decoded. A PCAPNG block declaring a body longer than the remaining input raises an uncaught Scapy_Exception, likewise discarding the accumulated list. Finally, gzip detection consumes the magic bytes and calls seek(0) on a named non-seekable stream, raising io.UnsupportedOperation even when the compressed capture is valid.

Scapy's rdpcap() reads classic PCAP and PCAPNG into an internally accumulated packet list, while rderf() handles ERF. Their iterators interpret EOFError as whole-file completion, and rdpcap() returns its list only after iteration completes. Consequently, premature completion can appear to the caller as a complete result with no indication of unread records, while escaping exceptions prevent return of the partial list. These failures occur during source opening or record framing, before packet-payload dissection, so the packet-level Raw fallback does not contain them. No special privileges, live capture, contributed module, configuration change, or non-default conf.debug_dissector setting is required.


10) Improper Handling of Case Sensitivity (CVE-ID: N/A)

CWE-ID: CWE-178 - Improper Handling of Case Sensitivity

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a guest SMB client to access the local repository served by Scapy's SMB server regardless of the configured shares, exposing repository contents that were not intended to be shared.

The vulnerability exists due to inconsistent handling of share-name case between case-insensitive share lookup and subsequent checks for the special IPC$ share. The server retains the request's spelling in its current tree state rather than the configured share name, causing a lowercase request to bypass the checks that restrict IPC$ to named pipes. A remote attacker can connect as a guest SMB client and request ipc$ in lowercase instead of IPC$ to make the server serve the local repository.

IPC$ is intended to remain pipe-only rather than provide access to a filesystem directory. Although the lowercase name successfully resolves during share lookup, its retained spelling causes later IPC$ checks to treat the connection differently and serve the default local folder, independently of the share configuration.


11) Infinite loop (CVE-ID: N/A)

CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')

CVSSv4: 4.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote peer to make Scapy's PipeEngine consume an entire processor core indefinitely by closing an established TCP connection normally. The engine thread remains alive but repeatedly reads end-of-file (EOF), reducing CPU availability for services that use the affected TCP pipes.

The vulnerability exists due to TCPConnectPipe.deliver() and TCPListenPipe.deliver() handling only nonempty recv() results without marking the source exhausted when an empty result indicates EOF. A remote attacker can close the sending side of an established connection after an application adds either TCP pipe to a running PipeEngine, triggering the loop without sending data or malformed input. The socket remains readable at EOF, and PipeEngine.run() removes a source only when exhausted() returns true after delivery; because the TCP pipes never set that state on EOF, the engine repeatedly selects and reads the same socket without making progress.

The affected delivery methods are in scapy/scapypipes.py, and the engine's source-removal logic is in scapy/pipetool.py. Exploitation requires an application using TCPConnectPipe or TCPListenPipe with PipeEngine, but no unusual configuration or privileges. A reproduction recorded 195,800 delivery calls and approximately 0.209 seconds of CPU use during a 0.2-second measurement after peer closure, whereas an open, idle connection caused no delivery calls. The CPU-consuming loop persists until the application stops the engine.


12) Insufficient verification of data authenticity (CVE-ID: N/A)

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to forge RPC requests and responses on DCE/RPC connections that have negotiated packet integrity or privacy.

The vulnerability exists due to insufficient verification of data authenticity in Scapy's DceRpcSession.in_pkt() when processing messages without an authentication verifier on an existing protected association. A remote attacker can inject or replace TCP data with an unsigned DCE/RPC message specifying auth_len=0 to bypass integrity verification and decryption, invoke registered server operations, or cause a Kerberos-mode Netlogon client to accept an attacker-selected UserSessionKey.


13) Improper Verification of Cryptographic Signature (CVE-ID: N/A)

CWE-ID: CWE-347 - Improper Verification of Cryptographic Signature

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote TLS 1.3 client to complete a client-authenticated handshake with Scapy's TLSServerAutomaton and send application data without proving possession of the presented certificate's private key. If a caller treats the stored client certificate as a verified identity, attacker-supplied traffic can consequently be associated with someone else's certificate.

The vulnerability exists due to failure to enforce the CertificateVerify signature verification result. The certificate parser stores the peer-controlled certificate chain in the session, and the proof parser verifies the signature against the first certificate, but an invalid result is only logged at INFO level; it is neither retained nor used to stop the handshake. The server automaton then consumes the message through an empty handler, accepts Finished, and proceeds to application data. A remote attacker can connect to a program using TLSServerAutomaton with client_auth=True, initiate a TLS 1.3 handshake, present a non-empty certificate, and sign CertificateVerify with an unrelated attacker-controlled private key. The demonstrated invalid proof uses RSA-PSS/SHA-256 and does not require disclosure of the server's private key.

CertificateVerify is intended to prove ownership of the certificate's private key by signing the handshake transcript. Finished proves possession of the negotiated traffic secret instead, so accepting it does not compensate for the unenforced signature check. The presented certificates remain in cur_session.client_certs despite the failed proof. This is a client-certificate proof-of-possession failure, not a blanket authorization bypass in a shipped Scapy web server: no in-tree consumer makes authorization decisions from that session state, and HTTPS_Server uses Python's ssl implementation rather than this automaton.


14) Origin validation error (CVE-ID: N/A)

CWE-ID: CWE-346 - Origin Validation Error

CVSSv4: 2.3 [CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows an unauthenticated sender to substitute attacker-controlled content for a victim's TFTP upload in Scapy's TFTP_WRQ_server. The server returns the victim's requested filename paired with the attacker's bytes. The demonstrated impact is limited to content substitution in the returned data; the shipped server does not write the content to disk, and no built-in persistence or code execution impact is established.

The vulnerability exists due to missing validation that upload DATA packets originate from the IP address and UDP source port that initiated the transfer. In scapy/layers/tftp.py, master_filter checks for TFTP traffic and the configured local destination address, while receive_data checks only whether the supplied block number matches the expected block. Accepted payloads are appended and returned without another origin check. A remote attacker can send a DATA packet from a second UDP endpoint while an upload is active and win the race against the victim's expected block. Sending block 1 before the victim can replace a single-block upload; a short block immediately ends the transfer, so one datagram suffices and the attacker does not need to receive a response.

The affected automaton is an opt-in network service that an application starts by creating TFTP_WRQ_server and calling run(); ordinary Scapy packet dissection does not start it. The initial write request establishes the filename and the endpoint used for replies, but that endpoint is not enforced for incoming upload data. Consequently, the victim receives ACK block 1 even when the accepted DATA came from the attacker. The first expected block number is fixed at 1, and any subsequent use of the returned filename and bytes is application-defined.


15) Improper Enforcement of Message Integrity During Transmission in a Communication Channel (CVE-ID: N/A)

CWE-ID: CWE-924 - Improper Enforcement of Message Integrity During Transmission in a Communication Channel

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker who can inject records into an authenticated TCP stream to overwrite server-side files through Scapy's SMB server without possessing the session signing or encryption key, bypassing an advertised requirement for session encryption.

The vulnerability exists due to missing inbound enforcement of the session encryption policy. Successful non-guest SMB3 session setup advertises ENCRYPT_DATA, sets EncryptData, and disables signing, but EncryptData is consulted only when preparing outbound messages. SMBSession.in_pkt() decrypts SMB transform records but accepts ordinary SMB2 headers without checking whether encryption is required; because signing is disabled, injected plaintext requests also receive no signature check. A remote attacker can inject an unsigned, unencrypted SMB2 WRITE into an established authenticated connection to a server configured with REQUIRE_ENCRYPTION and a writable share, after the client has negotiated SMB3 encryption and connected to a tree, causing the file handler to write attacker-controlled bytes.

Scapy's SMB_Server attaches an SMBStreamSocket to each accepted DirectTCP connection. SMBStreamSocket.recv() forwards accepted requests to the server's handlers, and the WRITE handler opens the selected path and writes the supplied data. The demonstrated plaintext WRITE changes a server-side file despite the session requiring encryption. This is an inbound policy-enforcement failure rather than an inability to encrypt replies: encrypted requests are decrypted normally, set NextForceEncrypt for their responses, and use the existing outbound encryption path.


16) Improper Authentication (CVE-ID: N/A)

CWE-ID: CWE-287 - Improper Authentication

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows an unauthenticated endpoint to bypass authentication and gain access to a protected network when a network access server (NAS) uses Scapy's RADIUS answering machine as its authentication server. The daemon returns a cryptographically valid Access-Accept without checking the endpoint's password, certificate, or other credential, causing the NAS to treat the exchange as successful authentication.

The vulnerability exists due to Radius_am.make_reply() initializing responses as Access-Accept and retaining that success code when authentication raises a Scapy_Exception. Unsupported EAP and CHAP, a missing authentication method, or missing authentication inputs can reach this error path, where the exception handler only logs a warning. Execution then computes the Response Authenticator and Message-Authenticator using the configured shared secret, making the erroneous acceptance authoritative to the NAS. A remote attacker can send a normal EAP identity response through a NAS configured to use this daemon and receive network access without authenticating.

The affected component is Radius_am, exposed as radiusd() in scapy/layers/radius.py. Exploitation requires an application to start the daemon with its shared secret and IDENTITIES configuration and a NAS to use it as its RADIUS server; the NAS forwards Access-Requests to UDP port 1812 by default. Although intended for lab and setup use rather than as a full RADIUS implementation, the daemon signs authentication decisions with the NAS shared secret. Supported PAP and MS-CHAPv2 authentication failures explicitly produce Access-Reject responses, unlike the exception path.


17) Improper access control (CVE-ID: N/A)

CWE-ID: CWE-284 - Improper Access Control

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote requester to obtain name-resolution answers from Scapy's LLMNR responder outside the protocol's intended local-link boundary. When relay mode is enabled, names without a local match are resolved through the responder host's configured DNS servers, exposing answers from that host's DNS view. Disclosure of internal-only records depends on the resolver used by the host; the advisory demonstrates retrieval of a public DNS answer, not an internal-only record.

The vulnerability exists due to the shared DNS request gate checking only the query bit and an optional source allowlist, without validating the destination address or hop limit. The from_ip setting defaults to True, accepting every IPv4 source. A remote attacker can send a unicast UDP query to port 5355 on a reachable host running the LLMNR answering machine and receive a response despite the query not arriving through link-local multicast. Queries are also accepted regardless of how many hops they crossed; the demonstrated unicast query uses a hop limit of 42. With relay mode enabled, accepted requests without a local match invoke dns_resolve(), and the resulting DNS answer is copied into the response.

The affected responder, LLMNR_am, inherits the common DNS responder implemented in scapy/layers/dns.py and is defined in scapy/layers/llmnr.py. An application must explicitly start llmnrd() on an interface; ordinary Scapy packet dissection does not start a responder. LLMNR queries are intended for the link-local multicast destinations 224.0.0.252 or ff02::1:3 with a hop limit of 1, and RFC 4795 requires responders to discard unicast UDP queries. This restriction is specific to LLMNR: mDNS permits direct unicast queries.


18) Out-of-bounds read (CVE-ID: N/A)

CWE-ID: CWE-125 - Out-of-bounds read

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows disclosure of out-of-bounds memory when Scapy receives packets through libpcap. Bytes beyond the captured packet can be returned as packet data, potentially exposing stale contents from a previous packet. When an application constructs a response from that data, the extra bytes can be reflected in its reply.

The vulnerability exists due to Scapy reading according to the reported original packet length rather than limiting the read to the number of bytes actually captured by libpcap. A remote attacker can send a packet whose original length exceeds the captured length to an application receiving packets through Scapy's libpcap backend, causing an out-of-bounds read. Disclosure to the attacker depends on the application returning the extra data, as demonstrated with an ICMP echo response.

The advisory demonstrates the issue using a real libpcap offline handle with conf.use_pcap enabled, without requiring live traffic or capture privileges. A 65,549-byte Ethernet/IP/ICMP frame captured as 65,535 bytes is returned at its original length, incorporating a private tail left by a preceding packet and reflecting it through Scapy's ICMP echo answering functionality. A control frame of 65,535 bytes has no length mismatch and does not expose the preceding packet's tail.


19) Uncaught Exception (CVE-ID: N/A)

CWE-ID: CWE-248 - Uncaught Exception

CVSSv4: 1.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service in Scapy programs serving CoAP resources through CoAPSocket. A single seven-byte UDP request can stop the affected socket from handling any subsequent requests while leaving it open and apparently healthy. A traceback is printed, but later valid requests time out.

The vulnerability exists due to ASCII decoding of attacker-controlled URI-Path option bytes in CoAPSocketImpl._handle_rcv_request() and exception handling that fails to preserve recurring receive polling. CoAP string options use UTF-8, so both valid non-ASCII UTF-8 text and invalid bytes such as 0xff can raise UnicodeDecodeError during ASCII decoding. A remote attacker can send a crafted CoAP request containing such a URI-Path option to a reachable UDP socket opened with registered resources. The exception escapes the request handler before _recv() schedules its next invocation. TimeoutScheduler catches and prints the callback exception, but does not restore the socket's polling, leaving subsequent requests unprocessed.

The affected behavior is reached when a program imports scapy.contrib.coap_socket and opens CoAPSocket with lst_resources containing CoAPResource objects. Incoming UDP requests are parsed as CoAP and routed to resource methods using their URI-Path options. No non-default configuration is required. The failure affects resource-serving sockets; code that only parses packet bytes with CoAP(packet_bytes) is unaffected.


20) Uncontrolled Recursion (CVE-ID: N/A)

CWE-ID: CWE-674 - Uncontrolled Recursion

CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote server to terminate a Scapy stream transaction by exhausting Python's recursion limit with a finely fragmented, otherwise valid application response. This causes a denial of service for the transaction: Python raises RecursionError before the complete application message is decoded, even when the message is small.

The vulnerability exists due to uncontrolled recursion in StreamSocketPeekless.recv, which calls itself whenever session processing needs more bytes instead of returning a complete packet. Each receive retains a Python stack frame, so recursion depth grows with the number of fragments rather than the message size. A remote attacker can operate a server that a user chooses to connect to and split its response across enough small TLS records or TCP writes to trigger the recursion limit when the client uses this socket wrapper with a length-sensitive parser.

StreamSocketPeekless reassembles protocols on streams where MSG_PEEK cannot be used; SSLStreamSocket is an older name for the same class, and LDAP_Client(ssl=True) uses it with the LDAP parser. The demonstrated 1,106-byte LDAP response raised RecursionError after 996 one-byte reads, while the same response delivered in one read decoded successfully. The exception originates in the socket wrapper, outside payload decoding, so fallback to Raw does not absorb it. Because the wrapper directly invokes session processing and recurses while the outer session is still waiting for sock.recv() to return, the failure also occurs outside the outer session's exception containment.


21) Improper Verification of Cryptographic Signature (CVE-ID: N/A)

CWE-ID: CWE-347 - Improper Verification of Cryptographic Signature

CVSSv4: 6 [CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows an on-path network attacker to bypass required SMB signing in Scapy's SMB server and execute unsigned file operations within an authenticated session without possessing the session key. The demonstrated attack connected to a configured share, opened a file, and retrieved its contents using a replayed SMB Kerberos token and unsigned requests.

The vulnerability exists due to direction confusion in SMBStreamSocket.recv(), which applies client-side response signature-verification exemptions to inbound client requests even when SigningRequired is enabled and verification uses IsClient=False. Verification is skipped when the header carries Status=STATUS_PENDING, when MID is 0xFFFFFFFFFFFFFFFF, or when the command is ECHO. The status and message-ID exemptions concern incoming server responses, not client requests. A remote attacker can capture and replay a service token from an on-path position and inject unsigned requests carrying STATUS_PENDING into a session on a server configured with a share and an authentication provider. No later serving state rejects the requests after signature verification is bypassed.

Scapy's SMB_Server automaton uses SMBStreamSocket to parse incoming DirectTCP streams before dispatching requests to serving states. Configuring an authentication provider makes the server require signing to protect authenticated requests against alteration. In the reproduction, unsigned TREE_CONNECT, CREATE, and READ requests carrying STATUS_PENDING succeeded, while otherwise equivalent unsigned requests carrying a success status were rejected. The READ action then opened the configured path and returned its bytes. The relevant request-verification logic is in scapy/layers/smb2.py, and the file-serving logic is in scapy/layers/smbserver.py.


22) Insufficient verification of data authenticity (CVE-ID: N/A)

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

CVSSv4: 5.6 [CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to obtain a user's new password.

The vulnerability exists due to insufficient verification of data authenticity in the KerberosClient TGS reply handling and kpasswd() helper when replaying a valid Kerberos TGS reply during a password-change request. A remote privileged user can substitute a previously captured reply for the current password-change response to obtain a user's new password.

User interaction is required to initiate the password change.


23) Insufficient verification of data authenticity (CVE-ID: N/A)

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to insufficient verification of data authenticity in receive_session_setup_response() when processing the final SMB SessionSetup response. A remote attacker can alter the guest-session flag in the response to disclose sensitive information.

Exploitation requires an active relay and a server that permits optional signing.


24) Improper Verification of Cryptographic Signature (CVE-ID: N/A)

CWE-ID: CWE-347 - Improper Verification of Cryptographic Signature

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose client application data.

The vulnerability exists due to improper verification of cryptographic signatures in TLSCertificateVerify.post_dissection() and TLSClientAutomaton when processing a TLS 1.3 server CertificateVerify message. A remote attacker can present a certificate with an invalid CertificateVerify signature to disclose client application data.

The TLS client continues the handshake and sends caller-supplied data despite the failed server-authentication proof.


25) Resource exhaustion (CVE-ID: N/A)

CWE-ID: CWE-400 - Resource exhaustion

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to uncontrolled resource consumption in the TFTP_RRQ_server read-server automaton when handling a TFTP read request without a matching acknowledgement. A remote attacker can send a TFTP read request for an available file and withhold the matching acknowledgement to cause a denial of service.

The affected server instance handles one transfer at a time and remains occupied while retransmitting the same data block every three seconds.


26) Infinite loop (CVE-ID: N/A)

CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to a loop with an unreachable exit condition in the snmpwalk() function when processing an SNMP endOfMibView response. A remote attacker can respond with a legal terminal SNMP response to cause a denial of service.


27) Authentication Bypass by Capture-replay (CVE-ID: N/A)

CWE-ID: CWE-294 - Authentication Bypass by Capture-replay

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to repeat high-integrity server-side file operations.

The vulnerability exists due to authentication bypass by capture-replay in the Scapy SMB server when processing a captured authenticated SMB request. A remote attacker can replay a captured authenticated request to repeat high-integrity server-side file operations.


28) Use of insufficiently random values (CVE-ID: N/A)

CWE-ID: CWE-330 - Use of Insufficiently Random Values

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to use of insufficiently random values in the EncryptedPreMasterSecret class when establishing a TLS 1.2 connection using an RSA cipher suite. A remote attacker can observe the TLS handshake and traffic to disclose sensitive information.

The issue is limited to the RSA key-exchange path; TLS 1.3 and ephemeral Diffie-Hellman cipher suites do not use the affected class.


29) Information disclosure (CVE-ID: N/A)

CWE-ID: CWE-200 - Exposure of sensitive information to an unauthorized actor

CVSSv4: 4.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a local user to disclose sensitive information.

The vulnerability exists due to improper handling of additional PEM objects in the Cert class when processing a combined certificate and private-key PEM file configured for a TLS server. A local user can cause the server to include the private key in its TLS Certificate message to disclose sensitive information.

The disclosure is limited to additional valid PEM objects in the configured certificate file.


30) Cleartext transmission of sensitive information (CVE-ID: N/A)

CWE-ID: CWE-319 - Cleartext Transmission of Sensitive Information

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper connection reuse in HTTP_Client when sending an HTTPS request after an HTTP request to the same host and explicitly selected port. A remote attacker can observe the reused plaintext connection to disclose sensitive information.

The HTTPS request is sent without TLS encryption when the earlier plaintext socket is reused.


31) Insufficient verification of data authenticity (CVE-ID: N/A)

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to impersonate a victim to another service and issue authenticated requests.

The vulnerability exists due to insufficient verification of data authenticity in the SPNEGOSSP authentication negotiation handling when processing a bare authentication token after SPNEGO mechanism negotiation has begun. A remote attacker can relay challenge-response messages and switch the authentication method from Kerberos to NTLM to impersonate a victim to another service and issue authenticated requests.

The attack requires inducing the victim's HTTP authentication and relaying several challenge-response messages.


32) Infinite loop (CVE-ID: N/A)

CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')

CVSSv4: 5.1 [CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to cause a denial of service.

The vulnerability exists due to loop with unreachable exit condition in the ISOTPSoftSocket receive scheduler when handling a rejected ISO-TP consecutive frame. A remote user can send a specially crafted CAN frame sequence to cause a denial of service.

User interaction is required to open and use an affected ISOTPSoftSocket, and the condition can persist after the crafted frames are consumed without continued traffic.


33) Insufficient verification of data authenticity (CVE-ID: N/A)

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

CVSSv4: 1.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to substitute attacker-controlled responses for the results of DCOM calls intended for a legitimate server.

The vulnerability exists due to insufficient verification of data authenticity in Scapy's DCOM call handling when selecting the destination for a call after contacting another server. A remote attacker can induce the program to use an attacker-controlled object first, causing a later call to a legitimate object to be sent to the attacker's server and its response to be accepted as the call result.


34) Protection mechanism failure (CVE-ID: N/A)

CWE-ID: CWE-693 - Protection Mechanism Failure

CVSSv4: 1.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose usernames, passwords, commands, and accounting records transmitted in TACACS+ messages.

The vulnerability exists due to a protection mechanism failure in Scapy's TACACS+ packet handling when processing messages with the Single Connection flag set. A remote attacker can observe the affected TCP connection to read message contents because the code incorrectly checks whether the entire flags byte is zero instead of testing only the Unencrypted bit, causing connection reuse to disable message obfuscation.

The affected TACACS+ contrib module is opt-in.


35) Reusing a Nonce, Key Pair in Encryption (CVE-ID: N/A)

CWE-ID: CWE-323 - Reusing a Nonce, Key Pair in Encryption

CVSSv4: 4.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to disclose sensitive information from encrypted PSP packets.

The vulnerability exists due to reuse of an AES-GCM nonce with the same encryption key in Scapy's PSP packet encryption when the caller does not supply a per-packet nonce. A remote user can analyze packets encrypted with the same key and nonce to recover information about their plaintext.


36) Insufficient verification of data authenticity (CVE-ID: N/A)

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

CVSSv4: 2.3 [CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker on the local network to cause an LDAP client to accept an authenticated response to an earlier request as the result of a later operation.

The vulnerability exists due to missing verification of response message IDs in Scapy's LDAP_Client.sr1() method when unwrapping LDAP responses protected by Kerberos GSSAPI or GSS-SPNEGO signing or encryption. A remote attacker on the local network can withhold a genuine server response until its request times out and a subsequent request is sent, then release it to cause the client to return the earlier response for the wrong operation.


37) Missing support for integrity check (CVE-ID: N/A)

CWE-ID: CWE-353 - Missing Support for Integrity Check

CVSSv4: 4.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote privileged user to potentially modify LDAP requests that are expected to be protected by signatures.

The vulnerability exists due to missing integrity protection and silent acceptance of unsupported signing in Scapy's LDAP client when NTLMSSP request signing without encryption is requested. A remote privileged user can potentially tamper with the resulting unsigned requests to compromise their integrity without the client reporting that signing is unsupported.


38) Insufficient verification of data authenticity (CVE-ID: N/A)

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to bypass a configured TLS channel-binding requirement for authentication.

The vulnerability exists due to insufficient verification of authentication channel binding in scapy's HTTPS_Server component when handling authentication configured to be tied to the server's own TLS connection. A remote attacker can attempt authentication without the required connection binding to bypass the configured channel-binding check if the server stops enforcing it.


39) Insufficient verification of data authenticity (CVE-ID: N/A)

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to bypass TLS handshake integrity verification and have application data accepted without a valid final handshake proof.

The vulnerability exists due to insufficient verification of data authenticity in Scapy's TLS server when processing a client's Finished message. A remote attacker can send an invalid Finished message followed by application data to have that data accepted despite the invalid handshake proof.


40) Insufficient verification of data authenticity (CVE-ID: N/A)

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to potentially disclose sensitive information.

The vulnerability exists due to insufficient verification of data authenticity in Scapy's NTLM security support provider when receiving client authentication messages. A remote attacker can submit authentication messages without a valid client message integrity code (MIC) to potentially gain unauthorized access to sensitive information.


41) Type conversion (CVE-ID: N/A)

CWE-ID: CWE-704 - Type conversion

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service in a relay-mode Scapy DNS answering machine.

The vulnerability exists due to incorrect type conversion in dns_resolve() when building an internal cache key for a relayed DNS question. A remote attacker can send an unresolved question with a valid qtype between 256 and 65535 to trigger an unhandled exception because struct.pack("!B", qtype) accepts only an 8-bit value, closing the responder socket and preventing the affected instance from answering subsequent requests.

LLMNR and mDNS answering machines reuse the same responder, exposing the relay path on ports 5355 and 5353.


Remediation

Install update from vendor's website.

References