Type conversion in scapy - #VU159455

 

Type conversion in scapy - #VU159455

Published: November 5, 2026


Vulnerability identifier: #VU159455
CSH Severity: Low
CVSS v4: 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]
CVE-ID: N/A
CWE-ID: CWE-704
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

scapy

Remediation

Install security update from vendor's website.

scapy - update to 2.8.0

External References

Related Security Bulletins