Vulnerability Description
Punk::Plugin::TOTP versions before 0.05 for Perl accept another account's recovery code at the two-factor challenge because totp_use_recovery compares user identifiers numerically. The helper searches the recovery model for the submitted code's digest alone, across every user's rows, so the ownership test that follows is the only thing binding a code to the account it was issued to. That test compares the row's user_id with the challenged user's id through Perl's integer coercion, and an identifier with no leading digits coerces to zero, so any two of them compare equal. User models keyed on a username, an email address or a UUID hit that case, and a numeric key compares as intended. The challenge route feeds a submitted value to the helper once TOTP verification fails, so an attacker who knows a victim's password and holds a recovery code of their own passes the victim's second factor.
CVSS Score
CRITICAL
Related Weaknesses (CWE)
References
- https://metacpan.org/release/LNATION/Punk-TOTP-0.04/source/include/ptotp/ptotp_p
- https://metacpan.org/release/LNATION/Punk-TOTP-0.04/view/lib/Punk/Plugin/TOTP.pm
- https://metacpan.org/release/LNATION/Punk-TOTP-0.05/source/Changes
- http://www.openwall.com/lists/oss-security/2026/08/25/6
FAQ
What is CVE-2026-78619?
CVE-2026-78619 is a vulnerability with a CVSS score of 9.8 (CRITICAL). Punk::Plugin::TOTP versions before 0.05 for Perl accept another account's recovery code at the two-factor challenge because totp_use_recovery compares user identifiers numerically. The helper searche...
How severe is CVE-2026-78619?
CVE-2026-78619 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2026-78619?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.