Security Experts:

Connect with us

Hi, what are you looking for?


Network Security

DoS Vulnerability Found in Scapy Packet Manipulation Tool

Scapy, the free and open source packet manipulation tool, is affected by a denial-of-service (DoS) vulnerability, Imperva revealed on Tuesday.

Scapy, the free and open source packet manipulation tool, is affected by a denial-of-service (DoS) vulnerability, Imperva revealed on Tuesday.

Developed in Python, Scapy is a powerful tool that allows users to forge, decode, send, capture, store, and read packets. It can be used for network discovery, attacks, scans, tracerouting and probing, and its developers say it can replace tools such as hping, nmap, arp-sk, Wireshark, arping, tcpdump, and arpspoof.

While looking into more efficient ways of detecting and mitigating distributed denial-of-service (DDoS) attacks, Imperva researchers noticed that a specially crafted packet can cause Scapy to enter a DoS condition.

Specifically, experts says the algorithm used by the tool to determine the type of an inspected packet relies on port numbers, allowing the packet type to be easily spoofed. If an attacker sends a specially crafted packet that appears to be a RADIUS packet, Scapy enters an infinite loop.

“This can potentially affect the health of an enterprise network – for instance, if Scapy is being used by IT to monitor network traffic, the monitoring process will stop functioning,” Imperva’s Johnathan Azaria and Koby Kilimnik said in a blog post.

Imperva reported the vulnerability to Scapy developers and a patch has been released. However, when Imperva published its blog post, it warned that the current Scapy version (2.4.0) from the Python pip repositories had still contained the vulnerability. Users have been advised to build Scapy using code obtained directly from the official GitHub account.

“The potential impact is large – Scapy is quite a popular tool, and other libraries that depend on Scapy might be vulnerable as well. Networks relying on Scapy for traffic monitoring or other functions can also be affected,” explained Azaria and Kilimnik.

Imperva noted that some libraries with a Scapy dependency may be affected as well. The list includes IcmpTool, jldcmds, mim, ooniprobe, pyersinia, scapy-http and pysap.

Related: Flaw in Media Library Impacts VLC, Other Software

Related: GitHub Security Alerts Lead to Fewer Vulnerable Code Libraries

Related: Critical Vulnerability Addressed in Popular Code Libraries

Written By

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Click to comment

Expert Insights

Related Content


Websites of German airports, administration bodies and banks were hit by DDoS attacks attributed to Russian hacker group Killnet

Network Security

NSA publishes guidance to help system administrators identify and mitigate cyber risks associated with transitioning to IPv6.

Identity & Access

Hackers rarely hack in anymore. They log in using stolen, weak, default, or otherwise compromised credentials. That’s why it’s so critical to break the...

Cloud Security

VMware vRealize Log Insight vulnerability allows an unauthenticated attacker to take full control of a target system.

IoT Security

Lexmark warns of a remote code execution (RCE) vulnerability impacting over 120 printer models, for which PoC code has been published.

Mobile & Wireless

Apple rolled out iOS 16.3 and macOS Ventura 13.2 to cover serious security vulnerabilities.

Email Security

Microsoft is urging customers to install the latest Exchange Server updates and harden their environments to prevent malicious attacks.

Mobile & Wireless

Technical details published for an Arm Mali GPU flaw leading to arbitrary kernel code execution and root on Pixel 6.