Dragonfly Nil Dereference Vulnerability Leading to Panic

Vulnerability

A nil pointer dereference vulnerability has been identified in Dragonfly, an open-source P2P-based file distribution and image acceleration system, in versions prior to 2.1.0. The vulnerability arises because the first return value of certain functions is dereferenced even when an error is returned, leading to a nil dereference that causes the code to panic. This issue was discovered during a security audit by Trail of Bits.

Impact

Exploitation of this vulnerability can cause a panic in the application, disrupting its normal operation. According to the security audit report by Trail of Bits, this vulnerability could potentially be exploited by a malicious actor on a peer machine, leading to a nil pointer dereference and causing the application to panic.

Reproduction

To reproduce this vulnerability, a peer machine (referred to as Eve) can send a 'dfdaemonv1.DownRequest' to another peer (Alice). When Alice's machine receives the request, it may encounter a nil variable in the 'server.Download' method, resulting in a panic due to the nil pointer dereference.

Remediation

Users are advised to upgrade to Dragonfly version 2.1.0 or above.

Added: Sep 17, 2025, 8:21 PM
Updated: Sep 17, 2025, 8:21 PM

Vulnerability Rating

Custom Algorithm
spread
2.4
impact
2.5
exploitability
5.7
remediation
7.7
relevance
0.5
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.