NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

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

highCVSS 4.0 8.5

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

Published Aug 12, 2025

Affected packages

github.com/komari-monitor/komari

Ecosystem
Go
Affected
< 0.0.0-20250809064056-cc3d54bff4c6
Fixed in
0.0.0-20250809064056-cc3d54bff4c6
Check
go list -m github.com/komari-monitor/komari

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to imlonghao.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries