Vulnerability · Published Sep 17, 2025 · Assigned by GitHub_M

CVE-2025-59351Dragonfly possibly panics due to nil pointer dereference when using variables created alongside an error

Low 2.7

In plain English

A low-severity null pointer dereference in dragonfly from dragonflyoss. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.7Low
Exploit odds (30 days)0.3%top 75.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Dragonfly is an open source P2P-based file distribution and image acceleration system. Prior to 2.1.0, the first return value of a function is dereferenced even when the function returns an error. This can result in a nil dereference, and cause code to panic. This vulnerability is fixed in 2.1.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
God7y.io/dragonfly/v22.1.0GHSA-4mhv-8rh3-4ghw
God7y.io/dragonfly/v22.1.0GO-2025-3970
Gogithub.com/dragonflyoss/dragonfly2.1.0GHSA-4mhv-8rh3-4ghw
Gogithub.com/dragonflyoss/dragonflyno fix listedGO-2025-3970

Affected products (as reported)

VendorProductVersions
dragonflyoss dragonfly < 2.1.0

Weakness: CWE-476 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U

References