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

Critical 9.8 Published Updated

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.

Weakness: CWE-798, CWE-321

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.

PackageAffectedFixed in
d7y.io/dragonfly/v2 GoAll versions2.0.9-rc.2
d7y.io/dragonfly/v2 GoAll versions2.0.9-rc.2
d7y.io/dragonfly/v2 GoAll versions2.1.0-beta.1
d7y.io/dragonfly/v2 GoFrom 2.1.0-alpha.02.1.0-beta.1
d7y.io/dragonfly/v2 GoFrom 2.1.0-alpha.02.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.

Sources

Also known as GHSA-hpc8-7wpm-889w, GO-2024-3136.

Is CVE-2023-27584 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free