Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2025-59351 — dragonfly

🟡 CVSS 5.3 — Medium ✅ No Known Exploit CWE-476 NVD
5.3
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

DragonFly vulnerable to panics due to nil pointer dereference when using variables created alongside an error

Impact

We found two instances in the DragonFly codebase where the first return value of a function is dereferenced even when the function returns an error (figures 9.1 and 9.2). This can result in a nil dereference, and cause code to panic. The codebase may contain additional instances of the bug.

```golang

request, err := source.NewRequestWithContext(ctx, parentReq.Url,

parentReq.UrlMeta.Header)

if err != nil {

log.Errorf("generate url [%v] request error: %v", request.URL, err)

span.RecordError(err)

return err

}

```

Eve is a malicious actor operating a peer machine. She sends a dfdaemonv1.DownRequest request to her peer Alice. Alice’s machine receives the request, resolves a nil variable in the server.Download method, and panics.

Patches

  • Dragonfy v2.1.0 and above.

Workarounds

There are no effective workarounds, beyond upgrading.

References

A third party security audit was performed by Trail of Bits, you can see the [full report](https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf).

If you have any questions or comments about this advisory, please email us at [[email protected]](mailto:[email protected]).

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability low.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: Low — limited, and the attacker does not choose what is affected.

Weakness class

CVE-2025-59351 is classified as CWE-476: NULL Pointer Dereference. A pointer that can be null is used without a check, crashing the process.

Affected software

CVE-2025-59351 is recorded against 3 packages.

  • d7y.io/dragonfly/v2
  • dragonfly (fixed in 2.1.0)
  • github.com/dragonflyoss/dragonfly

Timeline and source

Published on 17 September 2025 and last revised on 3 March 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Package)
github.com (Web)
pkg.go.dev (Web)

Other advisories for this package

d7y.io/dragonfly/v2 has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-476: NULL Pointer Dereference) in other software:

Details

Severity Medium
CVSS Score 5.3
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CWE CWE-476
Public Exploit ✅ No
Source NVD
Published 2025-09-17
Updated 2026-08-20
Modified 2026-03-03

Affected Packages

Software From version Fixed in
d7y.io/dragonfly/v2 — —
dragonfly — 2.1.0
github.com/dragonflyoss/dragonfly — —

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in dragonfly

CVE-2025-59351 is rated CVSS 5.3 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2025
✓