GHSA-jhmr-57cj-q6g9: Github.com/komari monitor/komari Authentication Bypass Vulnerability

HIGH
CWE-287
Published
Advisory Summary

GHSA-jhmr-57cj-q6g9 is a HIGH authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Github.com/komari monitor/komari libraries in the Go ecosystem. The issue involves komari vulnerable to 2fa authentication bypass. Remediation is available by upgrading affected packages to version 0.0.0-20250809064056-cc3d54bff4c6.

GHSA-jhmr-57cj-q6g9 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-jhmr-57cj-q6g9
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-287: Improper Authentication
Affected Product Github.com/komari monitor/komari
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-jhmr-57cj-q6g9

To remediate this vulnerability, upgrade all affected Github.com/komari monitor/komari dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/komari-monitor/komari fixed: 0.0.0-20250809064056-cc3d54bff4c6
Upgrade github.com/komari-monitor/komari to 0.0.0-20250809064056-cc3d54bff4c6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/komari-monitor/komari

How to Check if You Are Affected

To determine whether your application is affected by GHSA-jhmr-57cj-q6g9, inspect your project dependencies for Github.com/komari monitor/komari:

inspect dependencies for github.com/komari-monitor/komari

Analyze the terminal output to locate any version of Github.com/komari monitor/komari in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20250809064056-cc3d54bff4c6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/komari monitor/komari, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Logic error in 2FA verification condition allows bypass of two-factor authentication ### Details https://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55 There is no way for `Verify2Fa` to return an error **AND** true as `ok` at the same time, any codes are considered as valid. ### PoC Use any 6 digits as 2FA code ### Impact Bypass 2FA Authentication

GHSA-jhmr-57cj-q6g9 Affected Github.com/komari monitor/komari Versions

1 component(s)
Fixed Versions:
0.0.0-20250809064056-cc3d54bff4c6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/komari-monitor/komari
Go
< 0.0.0-20250809064056-cc3d54bff4c6
0.0.0-20250809064056-cc3d54bff4c6

References

Frequently Asked Questions

What is GHSA-jhmr-57cj-q6g9?
GHSA-jhmr-57cj-q6g9 is a security vulnerability in Github.com/komari monitor/komari involving Komari vulnerable to 2FA Authentication Bypass under CWE-287: Improper Authentication.
Which Github.com/komari monitor/komari versions are affected?
Affected versions include releases prior to 0.0.0-20250809064056-cc3d54bff4c6 across affected packages: github.com/komari-monitor/komari.
What version fixes GHSA-jhmr-57cj-q6g9?
Upgrading to 0.0.0-20250809064056-cc3d54bff4c6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/komari-monitor/komari affected?
Yes, github.com/komari-monitor/komari is affected in releases prior to 0.0.0-20250809064056-cc3d54bff4c6. Upgrade your dependency to 0.0.0-20250809064056-cc3d54bff4c6 or later.
What CWE is associated with GHSA-jhmr-57cj-q6g9?
GHSA-jhmr-57cj-q6g9 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Go dependencies for GHSA-jhmr-57cj-q6g9?
Run the dependency tree command: 'inspect dependencies for github.com/komari-monitor/komari'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jhmr-57cj-q6g9",
  "modified" : "2025-08-12T00:13:37Z",
  "published" : "2025-08-12T00:13:36Z",
  "aliases" : [ ],
  "summary" : "Komari vulnerable to 2FA Authentication Bypass",
  "details" : "### 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",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/komari-monitor/komari"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20250809064056-cc3d54bff4c6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/komari-monitor/komari/security/advisories/GHSA-jhmr-57cj-q6g9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/komari-monitor/komari/commit/cc3d54bff4c6495beaa1c7483379cd04542c557f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/komari-monitor/komari"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/komari-monitor/komari/releases/tag/1.0.4-fix1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-12T00:13:36Z",
    "nvd_published_at" : null
  }
}