CVE-2025-59350
JSON

2.7low

Timing attacks against Proxy’s basic authentication are possible

Severity
2.7low CVSS:4.0 by GitHub_M
Exploit likelihood
0.34% (higher than 29% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-c2fc-9q9c-5486GO-2025-3972

Description

Dragonfly is an open source P2P-based file distribution and image acceleration system. Prior to 2.1.0, the access control mechanism for the Proxy feature uses simple string comparisons and is therefore vulnerable to timing attacks. An attacker may try to guess the password one character at a time by sending all possible characters to a vulnerable mechanism and measuring the comparison instruction’s execution times. This vulnerability is fixed in 2.1.0.

Affected

Product or packageVersionsReported by
dragonflyoss dragonfly< 2.1.0CVE List
github.com/dragonflyoss/dragonfly (Go)before 2.1.0, all versionsGitHub Advisory Database, Go Vulnerability Database
d7y.io/dragonfly/v2 (Go)before 2.1.0GitHub Advisory Database, Go Vulnerability Database
linuxfoundation dragonflybefore 2.1.0NVD

All scores

GitHub_M2.7low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-208CWE-697

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Dragonfly is an open source P2P-based file distribution and image acceleration system. Prior to 2.1.0, the access control mechanism for the Proxy feature uses simple string comparisons and is therefore vulnerable to timing attacks. An attacker may try to guess the password one character at a time by sending all possible characters to a vulnerable mechanism and measuring the comparison instruction’s execution times. This vulnerability is fixed in 2.1.0.

GitHub Advisory Database
Impact

The access control mechanism for the Proxy feature uses simple string comparisons and is therefore vulnerable to timing attacks. An attacker may try to guess the password one character at a time by sending all possible characters to a vulnerable mechanism and measuring the comparison instruction’s execution times. The vulnerability is shown in figure 8.1, where both the username and password are compared with a short-circuiting equality operation.

if user != proxy.basicAuth.Username || pass != proxy.basicAuth.Password {

It is currently undetermined what an attacker may be able to do with access to the proxy password.

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.

If you have any questions or comments about this advisory, please email us at dragonfly-maintainers@googlegroups.com.

Go Vulnerability Database

Dragonfly vulnerable to timing attacks against Proxy’s basic authentication in d7y.io/dragonfly

NVD (es)

Dragonfly es un sistema de distribución de archivos y aceleración de imágenes de código abierto basado en P2P. Anterior a la 2.1.0, el mecanismo de control de acceso para la función de Proxy utiliza comparaciones de cadenas simples y, por lo tanto, es vulnerable a ataques de temporización. Un atacante puede intentar adivinar la contraseña un carácter a la vez enviando todos los caracteres posibles a un mecanismo vulnerable y midiendo los tiempos de ejecución de la instrucción de comparación. Esta vulnerabilidad se corrigió en la versión 2.1.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-59350 changed 2025-09-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-c2fc-9q9c-5486 changed 2025-09-26CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3972 changed 2026-03-03CC-BY-4.0
NVDCVE-2025-59350 changed 2026-06-17Public domain