---
id: CVE-2026-126465
title: OpenEMR before 8.5.0 SQL Injection via OnsiteActivityView _BitwiseAnd Criteria
summary: >-
  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 clos…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-89
vendor: openemr
product: openemr
affected:
  - openemr < 8.5.0
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-13T19:25:25.636004Z'
exploitAvailable: true
published: '2026-11-13'
updated: '2026-11-13'
sourceUpdated: '2026-11-13T19:25:49.018Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-126465'
references:
  - url: 'https://github.com/openemr/openemr/security/advisories/GHSA-vvj8-xpx8-p293'
    label: GitHub Security Advisory (GHSA-vvj8-xpx8-p293)
  - url: >-
      https://www.vulncheck.com/advisories/openemr-before-8.5.0-sql-injection-via-onsiteactivityview-bitwiseand-criteria
    label: >-
      VulnCheck Advisory: OpenEMR before 8.5.0 SQL Injection via
      OnsiteActivityView _BitwiseAnd Criteria
tags:
  - cve.org
  - exploit-available
epss: 0.0043
epssPercentile: 0.3773
ingestedAt: '2026-11-13T10:36:39.580Z'
---

## Overview

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.

## Affected

- `openemr < 8.5.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
