CVE-2023-27584 Dragonfly2 vulnerable to hard coded cyptographic key
Hardcoded JWT secret in Dragonfly2 allows attackers to bypass authentication and gain admin privileges.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-27584?
CVE-2023-27584 is a critical vulnerability in dragonflyoss Dragonfly2, published on 19 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Dragonfly is an open source P2P-based file distribution and image acceleration system. It is hosted by the Cloud Native Computing Foundation (CNCF) as an Incubating Level Project. Dragonfly uses JWT to verify user. However, the secret key for JWT, "Secret Key", is hard coded, which leads to authentication bypass. An attacker can perform any action as a user with admin privileges. This issue has been addressed in release version 2.0.9. All users are advised to upgrade. There are no known workarounds for this vulnerability.
Which versions are affected by CVE-2023-27584?
5 open source packages ship an affected version, including d7y.io/dragonfly/v2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
d7y.io/dragonfly/v2 Go | All versions | 2.0.9-rc.2 |
d7y.io/dragonfly/v2 Go | All versions | 2.0.9-rc.2 |
d7y.io/dragonfly/v2 Go | All versions | 2.1.0-beta.1 |
d7y.io/dragonfly/v2 Go | From 2.1.0-alpha.0 | 2.1.0-beta.1 |
d7y.io/dragonfly/v2 Go | From 2.1.0-alpha.0 | 2.1.0-beta.1 |
Products include Linuxfoundation Dragonfly.
How do I fix CVE-2023-27584?
Upgrade d7y.io/dragonfly/v2 to a fixed version for your release line: 2.0.9-rc.2 or 2.1.0-beta.1.
Is CVE-2023-27584 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-27584 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in dragonflyoss Dragonfly2
- CVE-2026-24124 Dragonfly Manager Job API Allows Unauthenticated Access
- CVE-2025-59345 Dragonfly did not enable authentication for some Manager’s endpoints
- CVE-2025-59353 Manager generates mTLS certificates for arbitrary IP addresses
- CVE-2025-59352 Dragonfly allows arbitrary file read and write on a peer machine
- CVE-2025-59346 Dragonfly server-side request forgery vulnerability
Sources
Also known as GHSA-hpc8-7wpm-889w, GO-2024-3136.