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

- Severity: Low 2.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2025-09-17T19:46:41.322Z
- Modified: 2026-06-17T09:45:57.573Z
- Also known as: GHSA-4mhv-8rh3-4ghw, GO-2025-3970
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- dragonflyoss dragonfly: < 2.1.0
- github.com/dragonflyoss/dragonfly (Go): before 2.1.0; all versions
- d7y.io/dragonfly/v2 (Go): before 2.1.0
- linuxfoundation dragonfly: before 2.1.0

## Every score

- GitHub_M: CVSS:4.0 2.7 Low `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`
- GitHub: CVSS:4.0 Medium `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:P`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-4mhv-8rh3-4ghw> (advisory, patch, third-party-advisory, web)
- <https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59351> (advisory)
- <https://github.com/dragonflyoss/dragonfly> (package)
- <https://pkg.go.dev/vuln/GO-2025-3970> (web)

## Sources

- CVE List: [CVE-2025-59351](https://www.cve.org/CVERecord?id=CVE-2025-59351), CVE Terms of Use, modified 2025-09-18
- GitHub Advisory Database: [GHSA-4mhv-8rh3-4ghw](https://github.com/advisories/GHSA-4mhv-8rh3-4ghw), CC-BY-4.0, modified 2025-09-26
- Go Vulnerability Database: [GO-2025-3970](https://pkg.go.dev/vuln/GO-2025-3970), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-59351](https://nvd.nist.gov/vuln/detail/CVE-2025-59351), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59351 · Whole record: https://cve.day/CVE-2025-59351.json · Rebuilt by cve.day 2026-11-25T22:59:04.802Z
