{"id":"GHSA-jhmr-57cj-q6g9","aliases":["GHSA-jhmr-57cj-q6g9","GO-2025-3873"],"related":[],"kind":"vulnerability","state":"published","title":"Komari vulnerable to 2FA Authentication Bypass","summary":"### Summary\n\nLogic error in 2FA verification condition allows bypass of two-factor authentication\n\n### Details\n\nhttps://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55\n\nThere is no way for `Verify2Fa` to return an error **AND** true as `ok` at the same time, any codes are considered as valid.\n\n### PoC\n\nUse any 6 digits as 2FA code\n\n### Impact\n\nBypass 2FA Authentication","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Summary\n\nLogic error in 2FA verification condition allows bypass of two-factor authentication\n\n### Details\n\nhttps://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55\n\nThere is no way for `Verify2Fa` to return an error **AND** true as `ok` at the same time, any codes are considered as valid.\n\n### PoC\n\nUse any 6 digits as 2FA code\n\n### Impact\n\nBypass 2FA Authentication","format":"markdown","source":"ghsa"},{"lang":"en","text":"Komari vulnerable to 2FA Authentication Bypass in github.com/komari-monitor/komari","format":"markdown","source":"go"}],"published":"2025-08-12T00:13:36.000Z","modified":"2026-03-03T04:56:48.464Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20250809064056-cc3d54bff4c6"}],"ecosystem":"Go","package":"github.com/komari-monitor/komari","purl":"pkg:golang/github.com/komari-monitor/komari","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20250809064056-cc3d54bff4c6"}],"ecosystem":"Go","package":"github.com/komari-monitor/komari","purl":"pkg:golang/github.com/komari-monitor/komari","source":"go"}],"references":[{"url":"https://github.com/komari-monitor/komari/security/advisories/GHSA-jhmr-57cj-q6g9","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/komari-monitor/komari/commit/cc3d54bff4c6495beaa1c7483379cd04542c557f","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/komari-monitor/komari","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/komari-monitor/komari/releases/tag/1.0.4-fix1","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jhmr-57cj-q6g9","url":"https://github.com/advisories/GHSA-jhmr-57cj-q6g9","licence":"CC-BY-4.0","modified":"2025-08-18T13:57:31.011Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3873","url":"https://pkg.go.dev/vuln/GO-2025-3873","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:48.464Z"}],"updatedAt":"2026-11-25T22:56:24.115Z"}