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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-09-17 · Modified: 2025-09-18
- Aliases: GHSA-4mhv-8rh3-4ghw, GO-2025-3970
- Record: https://cvemate.com/vulnerability/CVE-2025-59351 · JSON: https://cvemate.com/vulnerability/CVE-2025-59351/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.314%, percentile 26.249%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- dragonflyoss dragonfly: \< 2.1.0
- d7y.io/dragonfly v2 (Go): \< 2.1.0
- github.com/dragonflyoss dragonfly (Go): \< 2.1.0 \| All versions (No fix recorded)
- linuxfoundation dragonfly: \< 2.1.0

## References

- <https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-4mhv-8rh3-4ghw>
- <https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59351>
- <https://github.com/dragonflyoss/dragonfly>
- <https://pkg.go.dev/vuln/GO-2025-3970>

---

Data as of 2026-12-05T04:47:41.535Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
