Technical impact
OpenEMR versions before 8.5.0 contain a SQL injection vulnerability that permits any authenticated core user to inject malicious SQL by supplying crafted patient_data field names to the CCR revandapprove controller. Attackers can embed scalar subqueries into the UPDATE patient_data SET clause to read staff password hashes and portal reset values, alter arbitrary patient demographics, and take over patient‑portal accounts.
Affected Systems
The affected product is OpenEMR, specifically installations running any version earlier than 8.5.0. It applies to all OpenEMR deployments where the CCR revandapprove functionality is enabled for authenticated core users.
Risk and Exploitability
The flaw carries a CVSS score of 8.6, indicating high severity, but its EPSS score is reported as under 1 percent, suggesting low current exploit likelihood in the wild. The vulnerability is not listed in CISA’s Known Exploited Vulnerabilities catalog. Exploitation requires authentication as a core user, which is typically granted to regular healthcare staff, thereby raising the potential impact. Because the attacker can retrieve password hashes and reset values, the risk extends to credential compromise and data integrity issues across the system.