GHSA-jhmr-57cj-q6g9 Komari vulnerable to 2FA Authentication Bypass

Not scored Published

Attackers can bypass two-factor authentication by submitting any six-digit code, potentially gaining unauthorized access to Komari monitoring accounts.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-jhmr-57cj-q6g9?

GHSA-jhmr-57cj-q6g9 is an authentication bypass vulnerability in github.com/komari-monitor/komari, published on 12 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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

Which versions are affected by GHSA-jhmr-57cj-q6g9?

3 open source packages ship an affected version, including github.com/komari-monitor/komari.

PackageAffectedFixed in
github.com/komari-monitor/komari GoAll versions0.0.0-20250809064056-cc3d54bff4c6
github.com/komari-monitor/komari GoAll versions0.0.0-20250809064056-cc3d54bff4c6
github.com/komari-monitor/komari GoAll versions0.0.0-20250809064056-cc3d54bff4c6

How do I fix GHSA-jhmr-57cj-q6g9?

Upgrade github.com/komari-monitor/komari to 0.0.0-20250809064056-cc3d54bff4c6 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is GHSA-jhmr-57cj-q6g9 being exploited?

There is no known exploitation of GHSA-jhmr-57cj-q6g9 in the wild and no public exploit code.

Sources

Also known as GO-2025-3873.

Is GHSA-jhmr-57cj-q6g9 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free