Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-23627

CVE-2026-23627: OpenEMR SQL Injection Vulnerability

CVE-2026-23627 is a SQL injection flaw in OpenEMR's Immunization module that allows authenticated users to execute arbitrary SQL queries and compromise databases. This article covers technical details, affected versions, and patches.

Published: February 27, 2026

CVE-2026-23627 Overview

CVE-2026-23627 is a SQL Injection vulnerability affecting OpenEMR, a free and open source electronic health records (EHR) and medical practice management application. Prior to version 8.0.0, an authenticated user can exploit a flaw in the Immunization module to execute arbitrary SQL queries. This vulnerability stems from improper handling of user-supplied patient_id values, which are directly concatenated into SQL WHERE clauses without parameterization or escaping.

Successful exploitation can lead to complete database compromise, Protected Health Information (PHI) exfiltration, credential theft, and potential remote code execution. Given OpenEMR's role in healthcare environments and its storage of sensitive patient data, this vulnerability poses significant risk to healthcare organizations.

Critical Impact

Authenticated attackers can execute arbitrary SQL queries to exfiltrate sensitive PHI, steal credentials, and potentially achieve remote code execution through database compromise.

Affected Products

  • OpenEMR versions prior to 8.0.0
  • OpenEMR Immunization module

Discovery Timeline

  • 2026-02-25 - CVE-2026-23627 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2026-23627

Vulnerability Analysis

This SQL Injection vulnerability (CWE-89) exists within the Immunization module of OpenEMR. The root issue lies in the ImmunizationTable.php file located at interface/modules/zend_modules/module/Immunization/src/Immunization/Model/. The vulnerable code constructs SQL queries by directly concatenating user-supplied patient_id values into WHERE clauses without proper sanitization or parameterized queries.

The vulnerability is accessible over the network and requires low attack complexity with no user interaction needed beyond the attacker having authenticated access to the system. Any authenticated user within the OpenEMR application can exploit this flaw, making it particularly dangerous in multi-user healthcare environments where various staff members have system access.

Root Cause

The vulnerability stems from improper input validation and the use of dynamic SQL query construction. User-supplied patient_id values are processed through the add_escape_custom() function, which proved insufficient for preventing SQL injection attacks. The code failed to implement parameterized queries, allowing attackers to break out of the intended SQL context and inject malicious SQL statements.

Attack Vector

The attack vector is network-based, targeting the Immunization module's query functionality. An authenticated attacker can manipulate the patient_id parameter to inject arbitrary SQL commands. Since the vulnerability allows execution of arbitrary SQL queries, attackers can:

  1. Extract sensitive patient health information (PHI) from the database
  2. Dump user credentials and password hashes
  3. Modify or delete database records
  4. Potentially achieve remote code execution through database-specific features (e.g., MySQL's INTO OUTFILE or stored procedures)

The following patch demonstrates the fix implemented in version 8.0.0:

php
         }
 
         $query .= "i.patient_id=p.pid and " .
-            add_escape_custom($query_codes) .
+            $query_codes .
             $query_pids . "i.cvx_code = c.code ORDER BY i.patient_id, i.id";
 
+        // Merge code_bind_values into query_data to use parameterized queries
+        if (!empty($form_data['code_bind_values'])) {
+            $query_data = array_merge($query_data, $form_data['code_bind_values']);
+        }
+
+        // Merge pid_bind_values into query_data to use parameterized queries
+        if (!empty($form_data['pid_bind_values'])) {
+            $query_data = array_merge($query_data, $form_data['pid_bind_values']);
+        }
+
         if ($getCount) {
             $result = $this->applicationTable->zQuery($query, $query_data);
             $resCount = $result->count();

Source: GitHub Commit cbf4ea4

The patch replaces the vulnerable add_escape_custom() approach with proper parameterized queries by merging bind values into the query data array, ensuring user input is treated as data rather than executable SQL code.

Detection Methods for CVE-2026-23627

Indicators of Compromise

  • Unusual SQL query patterns in database logs containing UNION SELECT, OR 1=1, or other SQL injection payloads targeting patient_id parameters
  • Unexpected database queries accessing multiple patient records or system tables from the Immunization module
  • Authentication logs showing legitimate users accessing abnormally large amounts of patient data
  • Database error logs indicating malformed SQL queries or syntax errors originating from the Immunization module

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect SQL injection patterns in HTTP requests to OpenEMR
  • Monitor database query logs for anomalous query structures, especially those containing SQL injection signatures
  • Deploy application-layer intrusion detection to identify unusual parameter values in requests to the Immunization module
  • Utilize SIEM correlation rules to detect potential PHI exfiltration patterns

Monitoring Recommendations

  • Enable detailed logging for all database queries executed by OpenEMR
  • Configure alerts for bulk data retrieval operations that exceed normal thresholds
  • Monitor network traffic for large outbound data transfers from the database server
  • Implement user behavior analytics to detect anomalous access patterns by authenticated users

How to Mitigate CVE-2026-23627

Immediate Actions Required

  • Upgrade OpenEMR to version 8.0.0 or later immediately
  • Audit database access logs for potential exploitation attempts prior to patching
  • Review user accounts for any unauthorized access or suspicious activity
  • Consider rotating database credentials and application secrets as a precautionary measure

Patch Information

OpenEMR version 8.0.0 addresses this vulnerability by implementing parameterized queries for the affected Immunization module. The fix ensures that user-supplied values are properly bound as parameters rather than concatenated into SQL strings.

For detailed patch information, refer to the GitHub Commit and the GitHub Security Advisory GHSA-x3hw-rwrg-v25h.

Workarounds

  • Implement network segmentation to restrict access to OpenEMR installations from untrusted networks
  • Apply strict role-based access controls to limit the number of users with access to the Immunization module
  • Deploy a Web Application Firewall (WAF) with SQL injection detection rules as a compensating control
  • Consider temporarily disabling the Immunization module if it is not critical to operations until patching is complete
bash
# Example: Restrict access to OpenEMR at the network level
# Add firewall rules to limit access to trusted IP ranges only
iptables -A INPUT -p tcp --dport 443 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechOpenemr

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Commit Change

  • GitHub Security Advisory GHSA-x3hw-rwrg-v25h
  • Related CVEs
  • CVE-2026-33914: OpenEMR Blind SQL Injection Vulnerability

  • CVE-2026-32127: OpenEMR SQL Injection Vulnerability

  • CVE-2026-24908: OpenEMR SQL Injection Vulnerability

  • CVE-2026-25746: OpenEMR SQL Injection Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English