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-25746

CVE-2026-25746: OpenEMR SQL Injection Vulnerability

CVE-2026-25746 is a SQL injection vulnerability in OpenEMR's prescription listing feature that allows authenticated attackers to exploit insufficient input validation. This article covers technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-25746 Overview

CVE-2026-25746 is a SQL injection vulnerability affecting OpenEMR, a widely-used free and open source electronic health records (EHR) and medical practice management application. Versions prior to 8.0.0 contain insufficient input validation in the prescription listing functionality, allowing authenticated attackers to execute arbitrary SQL queries against the underlying database.

This vulnerability is classified as CWE-89 (SQL Injection), a critical weakness that enables attackers to manipulate database queries through malicious input. Given OpenEMR's role in managing sensitive patient health information, successful exploitation could lead to unauthorized access to protected health information (PHI), data modification, or complete database compromise.

Critical Impact

Authenticated attackers can exploit SQL injection in the prescription module to extract, modify, or delete sensitive electronic health records, potentially compromising patient privacy and healthcare operations.

Affected Products

  • OpenEMR versions prior to 8.0.0
  • OpenEMR 7.0.4 (confirmed vulnerable per PoC)
  • All OpenEMR installations using the vulnerable C_Prescription.class.php and Prescription.class.php components

Discovery Timeline

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

Technical Details for CVE-2026-25746

Vulnerability Analysis

This SQL injection vulnerability exists within OpenEMR's prescription management module, specifically in the prescription listing functionality. The vulnerability stems from improper handling of user-supplied input that is incorporated into SQL queries without adequate sanitization or parameterization.

The attack can be executed by authenticated users over the network without requiring user interaction. Successful exploitation grants attackers the ability to read sensitive database contents including patient records, modify or delete data, and potentially escalate privileges within the application.

Healthcare applications like OpenEMR are particularly high-value targets due to the sensitive nature of Protected Health Information (PHI) they store, making this vulnerability especially concerning for healthcare organizations subject to HIPAA and other regulatory requirements.

Root Cause

The root cause of CVE-2026-25746 is insufficient input validation in the prescription listing functionality. According to the GitHub Security Advisory GHSA-78r7-g65p-gpw3, user-controlled input is passed to SQL queries without proper sanitization.

The vulnerable code paths are located in:

  • controllers/C_Prescription.class.php (line 180)
  • library/classes/Prescription.class.php (line 1148)
  • library/classes/Controller.class.php (line 77)

These components fail to properly escape or parameterize user input before incorporating it into database queries, allowing attackers to inject malicious SQL statements.

Attack Vector

The attack vector is network-based and requires low-privileged authentication to the OpenEMR application. An attacker with valid credentials can navigate to the prescription listing functionality and inject SQL payloads through vulnerable input fields or parameters.

The following patch was applied to remediate the vulnerability:

php
  * @package   OpenEMR
  * @link      https://www.open-emr.org
  * @author    Brady Miller <brady.g.miller@gmail.com>
+ * @author    Michael A. Smith <michael@opencoreemr.com>
  * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
+ * @copyright Copyright (c) 2026 OpenCoreEMR Inc <https://opencoreemr.com/>
  * @license   https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
  */

Source: GitHub OpenEMR Commit Update

A proof-of-concept demonstrating this vulnerability is available in the CVE-2026-25746 PoC repository.

Detection Methods for CVE-2026-25746

Indicators of Compromise

  • Unusual SQL syntax or error messages in web server logs associated with prescription-related endpoints
  • Database query logs showing injection attempts with UNION, SELECT, or other SQL keywords in prescription parameters
  • Unexpected database access patterns or data exfiltration from prescription-related tables
  • Authentication logs showing suspicious activity from accounts accessing prescription functionality

Detection Strategies

  • Deploy web application firewall (WAF) rules to detect and block SQL injection patterns in HTTP requests
  • Enable detailed logging for database queries and monitor for anomalous SQL statements
  • Implement intrusion detection system (IDS) signatures targeting SQL injection payloads
  • Review application logs for requests to /controllers/C_Prescription.class.php with suspicious parameter values
  • Monitor for unusual SELECT statements or database enumeration attempts in database audit logs

Monitoring Recommendations

  • Configure real-time alerting for SQL error messages returned to clients
  • Enable database audit logging to track all queries against sensitive patient tables
  • Implement behavioral analysis to detect abnormal data access patterns from authenticated users
  • Set up monitoring for large data exports or unusual query volumes from prescription-related functions

How to Mitigate CVE-2026-25746

Immediate Actions Required

  • Upgrade OpenEMR to version 8.0.0 or later immediately
  • Review database audit logs for evidence of exploitation attempts
  • Conduct a security assessment to identify any unauthorized data access
  • Implement network segmentation to limit access to the OpenEMR application
  • Enable Web Application Firewall (WAF) rules to block SQL injection attempts as an interim measure

Patch Information

OpenEMR has released version 8.0.0 which contains the security fix for this vulnerability. The patch is available via the official commit. Organizations should upgrade to the patched version as soon as possible.

For detailed information about the vulnerability and remediation, refer to the GitHub Security Advisory GHSA-78r7-g65p-gpw3.

Workarounds

  • Implement strict input validation at the WAF or reverse proxy level for prescription-related endpoints
  • Restrict network access to OpenEMR to only trusted IP ranges
  • Limit user privileges to the minimum necessary for their role, reducing potential impact of compromised accounts
  • Enable database connection encryption and audit logging to detect exploitation attempts
bash
# Example: Apache ModSecurity rule to block SQL injection attempts
SecRule ARGS "@detectSQLi" \
    "id:1001,\
    phase:2,\
    deny,\
    status:403,\
    msg:'SQL Injection attempt detected',\
    log,\
    auditlog"

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 Score8.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub CVE-2026-25746 PoC

  • GitHub OpenEMR Controller Code

  • GitHub OpenEMR Controller Code

  • GitHub OpenEMR Prescription Controller Code

  • GitHub OpenEMR Prescription Class Code

  • GitHub OpenEMR Commit Update

  • GitHub Security Advisory GHSA-78r7-g65p-gpw3
  • 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-23627: 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