{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.shenyu:shenyu-admin. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-37580 exists.","fix":"Upgrade org.apache.shenyu:shenyu-admin to 2.4.1 or later.","what":"CVE-2021-37580 is a critical authentication bypass vulnerability in Apache ShenYu Admin, published on 16 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-37580 and fix it if it is affected.\n\nWhat it is: CVE-2021-37580 is a critical authentication bypass vulnerability in Apache ShenYu Admin, published on 16 Nov 2021. 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-2021-37580 exists.\n\nAffected packages and fixed versions:\n- org.apache.shenyu:shenyu-admin (Maven): affected from 2.3.0; fixed in 2.4.1\n- org.apache.shenyu:shenyu-admin (Maven): affected from 2.3.0; fixed in 2.4.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-2021-37580/ (Markdown: https://insights.sbomify.com/CVE-2021-37580/index.md)","id":"CVE-2021-37580","markdown":"https://insights.sbomify.com/CVE-2021-37580/index.md","name":"CVE-2021-37580","record":{"aliases":["GHSA-vpfp-5gwq-g533"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache ShenYu Admin","requires_auth":"none","summary":"An attacker can bypass authentication in Apache ShenYu Admin due to incorrect JWT usage, gaining unauthorized access to the system.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"shenyu","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","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-287","name":"Improper Authentication"}],"description":"A flaw was found in Apache ShenYu Admin. The incorrect use of JWT in ShenyuAdminBootstrap allows an attacker to bypass authentication. This issue affected Apache ShenYu 2.3.0 and 2.4.0","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2021-11-17","github_poc":7,"max_poc_stars":38,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-11-17T13:26:46Z","kind":"github_poc","ref":"https://github.com/fengwenhua/CVE-2021-37580","stars":38,"title":"CVE-2021-37580的poc"},{"date":"2021-11-19T09:00:37Z","kind":"github_poc","ref":"https://github.com/Liang2580/CVE-2021-37580","stars":7,"title":"CVE-2021-37580"},{"date":"2021-11-19T08:21:44Z","kind":"github_poc","ref":"https://github.com/ZororoZ/CVE-2021-37580","stars":5,"title":null},{"date":"2021-11-17T08:33:25Z","kind":"github_poc","ref":"https://github.com/rabbitsafe/CVE-2021-37580","stars":4,"title":null},{"date":"2023-10-10T08:41:54Z","kind":"github_poc","ref":"https://github.com/CN016/Apache-ShenYu-Admin-JWT-CVE-2021-37580-","stars":1,"title":"Apache ShenYu Admin JWT认证绕过漏洞(CVE-2021-37580)"},{"date":"2021-11-19T06:49:35Z","kind":"github_poc","ref":"https://github.com/Osyanina/westone-CVE-2021-37580-scanner","stars":0,"title":"A vulnerability scanner that detects CVE-2021-37580 vulnerabilities."},{"date":"2021-11-19T13:59:26Z","kind":"github_poc","ref":"https://github.com/Wing-song/CVE-2021-37580","stars":0,"title":" Apache ShenYu 管理员认证绕过  "},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-37580.yaml","stars":null,"title":"Apache ShenYu Admin JWT - Authentication Bypass"}],"tier":"weaponised"},"has_fix":true,"headline":"Apache ShenYu Admin bypass JWT authentication","id":"CVE-2021-37580","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"auth_bypass","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"Memory corruption in n/a","id":"CVE-2021-37583"},"packages":[{"ecosystem":"Maven","fixed":["2.4.1"],"introduced":["2.3.0"],"last_affected":[],"package":"org.apache.shenyu:shenyu-admin","purl":null,"source":"GHSA-vpfp-5gwq-g533"},{"ecosystem":"Maven","fixed":["2.4.1"],"introduced":["2.3.0"],"last_affected":[],"package":"org.apache.shenyu:shenyu-admin","purl":"pkg:maven/org.apache.shenyu/shenyu-admin","source":"GHSA-vpfp-5gwq-g533"}],"prev":{"headline":"Bypass deserialization checks in Apache Dubbo","id":"CVE-2021-37579"},"products":["Apache ShenYu Admin"],"published":"2021-11-16","related":[{"cvss_score":9.8,"headline":"Apache ShenYu 2.4.1 Groovy Code Injection \u0026 SpEL Injection","id":"CVE-2021-45029","kev_date_added":null,"published":"2022-01-25"},{"cvss_score":9.1,"headline":"Apache ShenYu 2.4.1 Improper access control","id":"CVE-2022-23944","kev_date_added":null,"published":"2022-01-25"},{"cvss_score":8.8,"headline":"Apache ShenYu Admin ultra vires","id":"CVE-2022-42735","kev_date_added":null,"published":"2023-02-15"},{"cvss_score":8.8,"headline":"Apache ShenYu Admin Improper Privilege Management","id":"CVE-2022-37435","kev_date_added":null,"published":"2022-09-01"},{"cvss_score":7.5,"headline":"Apache ShenYu (incubating) Regular expression denial of service","id":"CVE-2022-26650","kev_date_added":null,"published":"2022-05-17"},{"cvss_score":7.5,"headline":"Apache ShenYu Password leakage","id":"CVE-2022-23223","kev_date_added":null,"published":"2022-01-25"}],"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":"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"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["Apache Software Foundation"]},"summary":"An attacker can bypass authentication in Apache ShenYu Admin due to incorrect JWT usage, gaining unauthorized access to the system.","url":"https://insights.sbomify.com/CVE-2021-37580/"}