CVE-2026-126454

OpenEMR before 8.5.0 TOTP Brute Force via main_screen.php and OAuth2

Published Nov 13, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
OpenEMR before 8.5.0 lacks rate limiting or lockout on TOTP submission, allowing attackers with a valid password to brute-force the 6-digit MFA code. Attackers can script repeated POST requests to main_screen.php or the OAuth2 authorization flow with re-submitted hidden credentials to bypass two-factor authentication.

Analysis

AI-generated

Technical impact

The vulnerability arises because OpenEMR before version 8.5.0 does not enforce any rate limiting or lockout policy for TOTP submission. An attacker who has a valid password can repeatedly submit 6‑digit MFA codes to main_screen.php or the OAuth2 authorization flow, allowing the attacker to eventually guess the correct code. This flaw permits bypassing two‑factor authentication and obtaining unauthorized access to the system. The weakness is classified as CWE-307, improper authentication.

Affected Systems

Affected systems are installations of OpenEMR provided by the openemr project, with all releases prior to 8.5.0. The vulnerability description does not list specific sub‑versions beyond the major release milestone, so all revisions before 8.5.0 are considered vulnerable.

Risk and Exploitability

The CVSS score of 8.6 classifies this flaw as High severity, but the EPSS indicator of less than 1% shows that current exploitation activity is very low. The flaw is also not listed in the CISA KEV catalog. Exploitation requires web‑based interaction with the application; an attacker can supply a valid password and repeatedly POST the TOTP value to the protected endpoints. Because the attack is purely automated and uses standard HTTP requests, the barrier to exploitation is low but the probability of an attacker attempting it remains modest. Nonetheless, the potential impact is significant if the first user’s credentials are compromised.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update OpenEMR to version 8.5.0 or later, which adds proper rate limiting and/or lockout for TOTP submissions.
  • If an upgrade is not immediately possible, configure the web server to enforce rate limiting on /main_screen.php and the OAuth2 endpoints (for example, using nginx limit_req or Apache mod_evasive).
  • Implement additional monitoring for repeated TOTP submission attempts and temporarily block offending IP addresses or users to prevent successful brute‑force attacks.

Generated by OpenCVE AI on November 14, 2026 at 15:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description OpenEMR before 8.5.0 lacks rate limiting or lockout on TOTP submission, allowing attackers with a valid password to brute-force the 6-digit MFA code. Attackers can script repeated POST requests to main_screen.php or the OAuth2 authorization flow with re-submitted hidden credentials to bypass two-factor authentication.
Title OpenEMR before 8.5.0 TOTP Brute Force via main_screen.php and OAuth2
First Time appeared Open-emr
Open-emr openemr
Weaknesses CWE-307
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-307

    Improper Restriction of Excessive Authentication Attempts

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 17, 2026, 2:13 PM
Reserved
Nov 10, 2026, 9:39 PM
Status
Analyzed
Published
Nov 13, 2026, 10:17 AM
Modified
Nov 17, 2026, 8:54 PM