ZeroHour

CVE-2023-27584

PoC niche

Hard-coded JWT Secret Key Enables Admin Authentication Bypass in CNCF Dragonfly

CVSS 3.1
9.8 critical
EPSS
34%p98
Published
()
Modified
AI analysis

Dragonfly2, the CNCF-incubating peer-to-peer file distribution and image acceleration system hosted by the Linux Foundation, signs and verifies its JWT authentication tokens with a hard-coded secret ('Secret Key'), enabling an authentication bypass tracked as CVE-2023-27584 (CVSS 9.8, CWE-321/CWE-798). Because the same secret is embedded in the code across deployments, an attacker with network access to the API can forge a valid, signed JWT for any user without knowing any credentials. With such a forged token, the attacker can perform any action with full administrator privileges on the Dragonfly deployment. All users running versions prior to the 2.0.9 release are affected; the issue was fixed in 2.0.9, and the GitHub advisory (GHSA-hpc8-7wpm-889w) advises all users to upgrade, with no known workarounds. The flaw is not in the CISA KEV catalog and there are no confirmed in-the-wild exploitation reports, but a public advisory with PoC reference exists and EPSS assigns a 33.6% probability of exploitation within 30 days (98th percentile), making prompt patching advisable.

What to do: Upgrade to Dragonfly 2.0.9 or later immediately, as there are no workarounds for the hard-coded JWT secret. Until patched, restrict network access to the Dragonfly API from untrusted networks and review logs for unexpected administrative actions, since any deployment reachable by an attacker can be compromised with a forged admin token.

Affected
Linux Foundation DragonflyAll versions prior to 2.0.9 (fixed in 2.0.9)
Estimated exposure
nichelikely thousands of deployments at most (no published install counts; specialized CNCF incubating project) — No public install counts or internet-exposure scan data are available for this project, so the estimate rests on deployment patterns: Dragonfly is a specialized CNCF incubating P2P image-distribution system typically deployed inside…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Vendors
linuxfoundation
Products
dragonfly
Weakness
CWE-321, CWE-798
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.