Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2025-59353 — dragonfly

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-295 NVD
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

DragonFly's manager generates mTLS certificates for arbitrary IP addresses

Impact

A peer can obtain a valid TLS certificate for arbitrary IP addresses, effectively rendering the mTLS authentication useless. The issue is that the Manager’s Certificate gRPC service does not validate if the requested IP addresses “belong to” the peer requesting the certificate—that is, if the peer connects from the same IP address as the one provided in the certificate request.

```golang

if addr, ok := p.Addr.(*net.TCPAddr); ok {

ip = addr.IP.String()

} else {

ip, _, err = net.SplitHostPort(p.Addr.String())

if err != nil {

return nil, err

}

}

// Parse csr.

[skipped]

// Check csr signature.

// TODO check csr common name and so on.

if err = csr.CheckSignature(); err != nil {

return nil, err

}

[skipped]

// TODO only valid for peer ip

// BTW we need support both of ipv4 and ipv6.

ips := csr.IPAddresses

if len(ips) == 0 {

// Add default connected ip.

ips = []net.IP{net.ParseIP(ip)}

}

```

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 high, availability none.

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:H/A:N

  • 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: High — total loss, or loss the attacker controls.
  • Availability impact: None.

Weakness class

CVE-2025-59353 is classified as CWE-295: Improper Certificate Validation. A TLS certificate is accepted without proper verification, so a man-in-the-middle can present their own.

Affected software

CVE-2025-59353 is recorded against 3 packages.

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

Timeline and source

Published on 24 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 (Advisory)
nvd.nist.gov (Advisory)
github.com (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-295: Improper Certificate Validation) in other software:

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CWE CWE-295
Public Exploit ✅ No
Source NVD
Published 2025-09-24
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

Site Security Check

Is dragonfly part of your stack?

CVE-2025-59353 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

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
✓