{"answers":{"affected":"5 open source packages ship an affected version, including d7y.io/dragonfly/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-27584 exists.","fix":"Upgrade d7y.io/dragonfly/v2 to a fixed version for your release line: 2.0.9-rc.2 or 2.1.0-beta.1.","what":"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."},"fix_prompt":"Check this codebase for CVE-2023-27584 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-27584 exists.\n\nAffected packages and fixed versions:\n- d7y.io/dragonfly/v2 (Go): affected all versions; fixed in 2.0.9-rc.2\n- d7y.io/dragonfly/v2 (Go): affected all versions; fixed in 2.0.9-rc.2\n- d7y.io/dragonfly/v2 (Go): affected all versions; fixed in 2.1.0-beta.1\n- d7y.io/dragonfly/v2 (Go): affected from 2.1.0-alpha.0; fixed in 2.1.0-beta.1\n- d7y.io/dragonfly/v2 (Go): affected from 2.1.0-alpha.0; fixed in 2.1.0-beta.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-27584/ (Markdown: https://insights.sbomify.com/CVE-2023-27584/index.md)","id":"CVE-2023-27584","markdown":"https://insights.sbomify.com/CVE-2023-27584/index.md","name":"CVE-2023-27584","record":{"aliases":["GHSA-hpc8-7wpm-889w","GO-2024-3136"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"P2P file distribution system","requires_auth":"none","summary":"Hardcoded JWT secret in Dragonfly2 allows attackers to bypass authentication and gain admin privileges.","user_interaction":"not_required","vuln_class":"hardcoded_credentials"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dragonfly","vendor":"linuxfoundation"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-798","name":"Use of Hard-coded Credentials"},{"id":"CWE-321","name":"Use of Hard-coded Cryptographic Key"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2023/CVE-2023-27584.yaml","stars":null,"title":"Dragonfly2 \u003c 2.1.0-beta.1 - Hardcoded JWT Secret"}],"tier":"weaponised"},"has_fix":true,"headline":"Dragonfly2 vulnerable to hard coded cyptographic key","id":"CVE-2023-27584","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"hardcoded_credentials","year":"2023"},"n_packages":5,"n_references":2,"next":{"headline":"Memory corruption in pjproject","id":"CVE-2023-27585"},"packages":[{"ecosystem":"Go","fixed":["2.0.9-rc.2"],"introduced":["0"],"last_affected":[],"package":"d7y.io/dragonfly/v2","purl":null,"source":"GHSA-hpc8-7wpm-889w"},{"ecosystem":"Go","fixed":["2.0.9-rc.2"],"introduced":["0"],"last_affected":[],"package":"d7y.io/dragonfly/v2","purl":"pkg:golang/d7y.io/dragonfly/v2","source":"GHSA-hpc8-7wpm-889w"},{"ecosystem":"Go","fixed":["2.1.0-beta.1"],"introduced":["0"],"last_affected":[],"package":"d7y.io/dragonfly/v2","purl":"pkg:golang/d7y.io/dragonfly/v2","source":"GO-2024-3136"},{"ecosystem":"Go","fixed":["2.1.0-beta.1"],"introduced":["2.1.0-alpha.0"],"last_affected":[],"package":"d7y.io/dragonfly/v2","purl":null,"source":"GHSA-hpc8-7wpm-889w"},{"ecosystem":"Go","fixed":["2.1.0-beta.1"],"introduced":["2.1.0-alpha.0"],"last_affected":[],"package":"d7y.io/dragonfly/v2","purl":"pkg:golang/d7y.io/dragonfly/v2","source":"GHSA-hpc8-7wpm-889w"}],"prev":{"headline":"Panindex uses hard coded cyptographic key","id":"CVE-2023-27583"},"products":["Dragonfly2"],"published":"2024-09-19","related":[{"cvss_score":8.9,"headline":"Dragonfly Manager Job API Allows Unauthenticated Access","id":"CVE-2026-24124","kev_date_added":null,"published":"2026-01-22"},{"cvss_score":7.7,"headline":"Dragonfly did not enable authentication for some Manager’s endpoints","id":"CVE-2025-59345","kev_date_added":null,"published":"2025-09-17"},{"cvss_score":7.7,"headline":"Manager generates mTLS certificates for arbitrary IP addresses","id":"CVE-2025-59353","kev_date_added":null,"published":"2025-09-17"},{"cvss_score":6.9,"headline":"Dragonfly allows arbitrary file read and write on a peer machine","id":"CVE-2025-59352","kev_date_added":null,"published":"2025-09-17"},{"cvss_score":5.5,"headline":"Dragonfly server-side request forgery vulnerability","id":"CVE-2025-59346","kev_date_added":null,"published":"2025-09-17"},{"cvss_score":5.5,"headline":"Dragonfly incorrectly handles a task structure’s usedTraffic field","id":"CVE-2025-59348","kev_date_added":null,"published":"2025-09-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-26","vendors":["dragonflyoss"]},"summary":"Hardcoded JWT secret in Dragonfly2 allows attackers to bypass authentication and gain admin privileges.","url":"https://insights.sbomify.com/CVE-2023-27584/"}