CVE-2026-126465
Description
OpenEMR before 8.5.0 contains an SQL injection vulnerability in the patient portal api/onsiteactivityviews endpoint that allows any authenticated staff user to inject SQL through unquoted Id_BitwiseAnd Criteria values. Attackers can close the bitwise parenthesis and append OR or UNION SELECT clauses to read patient PHI, staff password hashes, MySQL authentication strings, and API tokens.
How to fix
- openemr openemr8.5.0 or later
- open-emr openemr8.5.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openemr openemr | v < 8.5.0 | 8.5.0 |
| open-emr openemr | v < 8.5.0 | 8.5.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.