CVE-2021-25923
OpenEMR vulnerability analysis and mitigation

Overview

OpenEMR versions 5.0.0 to 6.0.0.1 are vulnerable to weak password requirements as the application does not enforce a maximum password length limit. This vulnerability could lead to account takeover if a malicious user knows the first 72 characters of the victim's password (WhiteSource).

Technical details

The vulnerability exists because OpenEMR does not enforce a maximum password length limit during user creation. The BCRYPT hash algorithm used by the system only processes the first 72 characters of a password, with any additional characters being truncated. This means that if an attacker knows the first 72 characters of a victim's password, they could potentially gain unauthorized access to the account regardless of any additional characters (GitHub). The vulnerability has a CVSS v3.1 base score of 8.1, with Network attack vector, High attack complexity, and No privileges required (WhiteSource).

Impact

If successfully exploited, this vulnerability could lead to complete account takeover of affected users. An attacker who knows the first 72 characters of a user's password could gain unauthorized access to the account, potentially compromising the confidentiality and integrity of sensitive medical information (WhiteSource).

Exploitability

The vulnerability can be exploited if a malicious user is aware of the first 72 characters of the victim user's password. A proof of concept demonstrates that signing in with a very long password is successful, but only the first 72 characters are actually used for authentication (WhiteSource).

Mitigation and workarounds

The vulnerability has been fixed in OpenEMR version 6.0.0.2. Users should upgrade to this version or later to address the issue. The fix includes implementing a maximum password length setting that defaults to 72 characters to match the BCRYPT algorithm's limitation (GitHub).

Additional resources


SourceThis report was generated using AI

Related OpenEMR vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-40506HIGH7
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesAug 17, 2026
CVE-2026-76614MEDIUM5.3
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesAug 19, 2026
CVE-2026-40509MEDIUM5.3
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesAug 19, 2026
CVE-2026-40508MEDIUM5.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesAug 19, 2026
CVE-2026-40507MEDIUM5.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesAug 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management