{"answers":{"affected":"3 open source packages ship an affected version, including github.com/kiali/kiali. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-20278 in the wild and no public exploit code.","fix":"Upgrade github.com/kiali/kiali to 1.31.0 or later.","what":"CVE-2021-20278 is a medium-severity authentication bypass vulnerability in kiali, published on 28 May 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-20278 and fix it if it is affected.\n\nWhat it is: CVE-2021-20278 is a medium-severity authentication bypass vulnerability in kiali, published on 28 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-20278 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/kiali/kiali (Go): affected all versions; fixed in 1.31.0\n- github.com/kiali/kiali (Go): affected all versions; fixed in 1.31.0\n- github.com/kiali/kiali (Go): affected all versions; fixed in 1.31.0\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-20278/ (Markdown: https://insights.sbomify.com/CVE-2021-20278/index.md)","id":"CVE-2021-20278","markdown":"https://insights.sbomify.com/CVE-2021-20278/index.md","name":"CVE-2021-20278","record":{"aliases":["GHSA-ggjr-2f7v-vhq4","GO-2022-0700"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Kiali service mesh console","requires_auth":"none","summary":"Attackers can bypass authentication in Kiali when using OpenID implicit flow with RBAC disabled, allowing unauthorized access to the service mesh console.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"kiali","vendor":"kiali"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"description":"An authentication bypass vulnerability was found in Kiali in versions before 1.31.0 when the authentication strategy `OpenID` is used. When RBAC is enabled, Kiali assumes that some of the token validation is handled by the underlying cluster. When OpenID `implicit flow` is used with RBAC turned off, this token validation doesn't occur, and this allows a malicious user to bypass the authentication.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Kiali Authentication Bypass vulnerability","id":"CVE-2021-20278","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2021"},"n_packages":3,"n_references":2,"next":{"headline":"Moodle contains Stored XSS via ID number user profile field","id":"CVE-2021-20279"},"packages":[{"ecosystem":"Go","fixed":["1.31.0"],"introduced":["0"],"last_affected":[],"package":"github.com/kiali/kiali","purl":null,"source":"GHSA-ggjr-2f7v-vhq4"},{"ecosystem":"Go","fixed":["1.31.0"],"introduced":["0"],"last_affected":[],"package":"github.com/kiali/kiali","purl":"pkg:golang/github.com/kiali/kiali","source":"GHSA-ggjr-2f7v-vhq4"},{"ecosystem":"Go","fixed":["1.31.0"],"introduced":["0"],"last_affected":[],"package":"github.com/kiali/kiali","purl":"pkg:golang/github.com/kiali/kiali","source":"GO-2022-0700"}],"prev":{"headline":"Memory corruption in samba","id":"CVE-2021-20277"},"products":["kiali"],"published":"2021-05-28","related":[{"cvss_score":8.6,"headline":"Hard coded cryptographic key in Kiali","id":"CVE-2020-1764","kev_date_added":null,"published":"2020-03-26"},{"cvss_score":7,"headline":"Insufficient Session Expiration in Kiali","id":"CVE-2020-1762","kev_date_added":null,"published":"2020-04-27"},{"cvss_score":4.3,"headline":"Kiali: error message spoofing in kiali ui","id":"CVE-2022-3962","kev_date_added":null,"published":"2023-09-23"}],"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers can bypass authentication in Kiali when using OpenID implicit flow with RBAC disabled, allowing unauthorized access to the service mesh console.","url":"https://insights.sbomify.com/CVE-2021-20278/"}