Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid username and password
-
DeliverySubmit login to reach TOTP MFA challenge
-
ExploitScript POST requests re-sending hidden credentials
-
ExecutionBrute-force 6-digit code with no lockout or throttle
-
ImpactReceive authenticated session to patient records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Brute-force prevention, rate limiting
|
| Exploitation Conditions | Three concrete prerequisites: (1) the attacker must already hold a valid username and password for an OpenEMR user (PR:L) - the flaw bypasses only the second factor; (2) that account must have TOTP MFA enabled; and (3) the instance must be OpenEMR before 8.5.0. The attack targets the web login flow (main_screen.php) or the OAuth2 authorization code flow (AuthorizationController.php), exploiting that TOTP failures do not increment login_fail_counter/ip_login_fail_counter and are not throttled, while the correct password is preserved in a hidden clearPass field and auto-re-submitted. Limiting factors beyond raw CVSS: exploitation is impossible without prior credential compromise, requires MFA to actually be in use, and depends on the vulnerable version; it works against default configurations (no special setting needs to be enabled - the throttle is simply absent). |
| Impact | This is a genuine but conditional priority. The input CVSS 4.0 vector (8.6) and the vendor's CVSS 3.1 vector (8.1, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N) agree on network attack vector (AV:N), low complexity (AC:L), no user interaction (UI:N), and high confidentiality/integrity impact - consistent with full takeover of an authenticated EHR session containing PHI. The decisive mitigating signal is PR:L: per the vector and the advisory, the attacker must ALREADY possess a valid username and password, and the target account must have TOTP MFA enabled; this flaw only defeats the second factor, it does not grant initial access. The vuln.today decision label is 'this_week' (not act_now/emergency). This CVE is NOT in CISA KEV (no KEV signal in the input) and NO EPSS score was provided, so widespread automated exploitation cannot be inferred from the data; the realistic threat is a targeted attacker who has already harvested credentials (phishing, reuse, prior breach) and wants to bypass the MFA control. In short, a real and well-documented authentication-control failure, but gated behind prior password compromise rather than a wormable unauthenticated RCE. |
| Exploit ScenarioDerived | An attacker who has already obtained a valid OpenEMR password (via phishing, credential reuse, or a prior leak) for a user with TOTP MFA logs in to reach the MFA challenge, then scripts automated POST requests to main_screen.php (or the OAuth2 authorization code flow) each carrying the re-submitted hidden credentials and a different 6-digit code. Because the password stays correct on every attempt, neither login_fail_counter nor ip_login_fail_counter increments and no TOTP throttle applies, so the 10^6 space (with 2 valid codes per 30-second window) is brute-forced in hours or less. A detailed step-by-step proof-of-concept is published in the GHSA advisory, though no verified working exploit code is attached. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
OpenEMR before 8.5.0 omits rate limiting and lockout on the TOTP submission step, so an authenticated attacker who already holds a valid password for a TOTP-protected account can script repeated POST requests to main_screen.php or the OAuth2 authorization flow and brute-force the six-digit code, defeating the second factor. The password is preserved in a hidden clearPass field and auto-resubmitted, so the existing login_fail_counter and ip_login_fail_counter never increment because those counters only track wrong passwords. Successful guessing yields a fully authenticated session and access to protected data and functions; exploitation requires prior credential compromise plus MFA actually being enabled on the account, and no public exploit has been identified at time of analysis.
RemediationAI
Vendor-released patch: OpenEMR 8.5.0; upgrading to 8.5.0 or later is the complete fix, as the vendor package data lists '< 8.5.0' as vulnerable and 'fixed in: 8.5.0' (advisory: https://github.com/openemr/openemr/security/advisories/GHSA-rp7c-25mm-8g74). Because the flaw only matters once a password is already known, limit exposure in the interim by treating password compromise as the gating condition: enforce strong, unique credentials and rotate any password that may have been exposed for accounts using TOTP, and restrict network access to the login and OAuth2 authorization endpoints to trusted networks or a reverse proxy that can apply per-source request throttling on POSTs to main_screen.php and the OAuth2 authorization flow - noting that such front-end throttling must be tuned carefully, since an aggressive limit can lock out legitimate users during login bursts. Organizations that cannot upgrade immediately should consider temporarily disabling TOTP-only reliance in favour of a second factor that is not guessable through repeated submissions, accepting the operational overhead of re-enrolling users, and should monitor audit logs for repeated TOTP failures from a single account or source as a detection signal.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The issue is CWE-307 (Improper Restriction of Excessive Authentication Attempts) in OpenEMR's PHP authentication stack. In main_screen.php the TOTP check calls the RobThree TwoFactorAuth library's validateCode(); a failed check writes an audit entry and re-renders the MFA form, with the password re-emitted as a hidden input by generate_html_middle() and resubmitted automatically. The throttling logic in AuthUtils.php only increments login_fail_counter and ip_login_fail_counter inside confirmUserPassword(), i.e. only when the password is wrong - never on a bad TOTP value - so repeated guesses with a correct password are unmetered. The library's default discrepancy of 1 keeps two codes valid at any moment (current and previous 30-second window), giving roughly 2 in 10^6 odds per attempt against an effectively unlimited attempt budget; the same absence of counting exists in the OAuth2 authorization code flow in AuthorizationController.php. The affected component is the OpenEMR application itself (CPE cpe:2.3:a:openemr:openemr, all versions before 8.5.0), independent of the underlying PHP version or database backend.
Know when Openemr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
PR:L because the attacker must already supply a valid password; AC:L as the brute force is straightforwardly scriptable with no special conditions; C:H/I:H for full access to patient records, A:N as availability is unaffected.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-307: Improper Restriction of Excessive Authentication Attempts.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-126454 is a high-severity vulnerability in OpenEMR before 8.5.0 that allows an authenticated attacker with a stolen password to bypass TOTP-based multi-factor authentication by brute-forcing the six-digit code due to missing rate limiting. This undermines the second factor for TOTP-protected accounts, potentially exposing electronic protected health information (ePHI) and compromising regulatory compliance (e.g., HIPAA). Leadership should prioritize remediation because it weakens a critical security control relied upon to protect sensitive patient data.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to
Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.
Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.
Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the
SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl
An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par
Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.
Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so
interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel
Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms
interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication
EUVD-2026-124969
GHSA-2vxm-wcfc-3cv5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB