OpenEMR's one-time token ignored its own limits
Patient portals often use a service token to move a user from a clinic workflow into an authenticated session. The token is supposed to be narrow, short-lived, and consumed once. OpenEMR's OneTimeAuth implementation had the opposite behavior in affected versions: it ignored its own one-time-use and maximum-access flags, kept consumed service tokens valid, and checked the login PIN without rate limiting or strict comparison.
CVE-2026-124445 affects OpenEMR from 7.0.1 before 8.4.0. The CVE record describes token replay and PIN brute force and rates the issue CVSS v4.0 9.3 and CVSS v3.1 9.8. The impact is a patient-portal session, with access to the protected health information available through that session.
The vulnerable file is src/Common/Auth/OneTimeAuth.php . The advisory says the flags enforce_onetime_use and max_access_count were ignored, consumed service_auth tokens were never revoked, and the PIN check lacked rate limiting or a strict comparison.…