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

CVE-2026-27943: OpenEMR Auth Bypass Vulnerability

CVE-2026-27943 is an authentication bypass flaw in OpenEMR's eye exam module that allows authenticated users to access or edit any patient's data. This article covers the technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-27943 Overview

OpenEMR is a free and open source electronic health records (EHR) and medical practice management application widely used in healthcare environments. In versions up to and including 8.0.0, the eye exam (eye_mag) view loads data by form_id (or equivalent) without verifying that the form belongs to the current user's patient/encounter context. This Insecure Direct Object Reference (IDOR) vulnerability allows an authenticated user to access or edit any patient's eye exam records by supplying another form ID. In some flows, the session's active patient may also be switched, further compounding the unauthorized access risk.

Critical Impact

Authenticated attackers can access and potentially modify sensitive protected health information (PHI) of any patient in the OpenEMR system, creating significant HIPAA compliance violations and patient privacy breaches.

Affected Products

  • OpenEMR versions up to and including 8.0.0
  • OpenEMR Eye Exam (eye_mag) module
  • Any deployment using the affected eye examination form functionality

Discovery Timeline

  • 2026-02-26 - CVE CVE-2026-27943 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-27943

Vulnerability Analysis

This vulnerability is classified as CWE-639: Authorization Bypass Through User-Controlled Key, commonly known as an Insecure Direct Object Reference (IDOR). The eye examination module in OpenEMR fails to implement proper authorization checks when loading patient form data. When a user accesses an eye exam form, the application retrieves the form based solely on the form_id parameter without validating that the requesting user has legitimate access to that specific patient's records.

The authorization bypass occurs because the application trusts user-supplied identifiers to access sensitive medical records. An authenticated user with access to the eye exam module can enumerate or guess form IDs to retrieve other patients' eye examination data, effectively bypassing the patient-encounter context that should restrict data access.

Root Cause

The root cause lies in the interface/forms/eye_mag/new.php file where the encounter and patient ID (pid) values are not properly validated against the session context. The original code used $_SESSION['encounter'] without proper guards, allowing scenarios where the encounter context could be missing or stale, enabling cross-patient data access. The application failed to enforce that the requested form belongs to the currently authenticated user's authorized patient scope.

Attack Vector

The attack requires network access and valid authentication to the OpenEMR system. An attacker with low-privilege authenticated access to the eye examination module can exploit this vulnerability by:

  1. Accessing the eye exam form interface
  2. Manipulating the form_id parameter in the request
  3. Supplying a different form ID belonging to another patient
  4. Viewing or modifying the unauthorized patient's eye examination data

The following patch demonstrates the security fix applied to address this vulnerability:

php
     $group = $_SESSION['authProvider'];
 }
 
-$encounter = !$_SESSION['encounter'] ? date("Ymd") : $_SESSION['encounter'];
+// $encounter is already in scope from globals.php / load_form.php.
+// Guard against missing encounter (the scenario that caused #10844):
+if (!isset($encounter) || (int) $encounter === 0) { // @phpstan-ignore cast.int ($encounter comes from global scope)
+    formHeader(xlt('Error'));
+    echo '<div class="alert alert-danger">' .
+        xlt('No active encounter. Please select or create an encounter first.') .
+        '</div>';
+    formFooter();
+    exit;
+}
+
+$encounterAttr = attr($encounter); // @phpstan-ignore argument.type ($encounter validated above)
 
 $query = "select * from form_encounter where pid =? and encounter= ?";
 $encounter_data = sqlQuery($query, [$pid,$encounter]);

Source: GitHub Commit Update

The fix ensures that a valid encounter context exists before proceeding with form data retrieval, and explicitly passes encounter and patient ID parameters in form URLs:

php
         'isAdminSuper' => AclMain::aclCheckCore("admin", "super"),
         'enableFollowUpEncounters' => $GLOBALS['enable_follow_up_encounters'],
         'menuArray' => $menu->getMenuData(),
+        'encounter' => (int) $encounter, // @phpstan-ignore cast.int ($encounter comes from global scope)
+        'pid' => (int) $pid,
     ]);
     ?>
 

Source: GitHub Commit Update

Detection Methods for CVE-2026-27943

Indicators of Compromise

  • Unusual access patterns to interface/forms/eye_mag/new.php with varying form_id parameters
  • Sequential or enumerated form_id values in web server access logs
  • Single user sessions accessing eye exam forms for multiple unrelated patients
  • Audit log entries showing eye form access without corresponding patient chart access

Detection Strategies

  • Implement web application firewall (WAF) rules to detect parameter tampering on form endpoints
  • Configure audit logging to track all eye exam form accesses and correlate with authorized patient lists
  • Deploy anomaly detection to identify users accessing forms outside their normal patient population
  • Monitor for rapid sequential requests to eye exam endpoints with incrementing form IDs

Monitoring Recommendations

  • Enable detailed access logging for all OpenEMR form modules, particularly eye_mag
  • Implement real-time alerting for access to eye exam records without prior patient chart access
  • Review audit trails regularly for unauthorized cross-patient data access patterns
  • Configure SIEM integration to correlate OpenEMR access logs with user authorization levels

How to Mitigate CVE-2026-27943

Immediate Actions Required

  • Update OpenEMR to the latest version from the main branch containing the security fix
  • Review audit logs to identify any potential exploitation of this vulnerability
  • Conduct a HIPAA breach assessment if unauthorized access to PHI is detected
  • Temporarily restrict access to the eye exam module if immediate patching is not possible
  • Notify compliance and security teams of the potential patient data exposure risk

Patch Information

A fix is available on the main branch of the OpenEMR GitHub repository. The security patch is documented in commit c87489bf63f2701b634d948279e104f2ed3df1c0. Organizations should update to the latest version that includes this fix. For detailed information about the vulnerability and patch, refer to the GitHub Security Advisory GHSA-q96x-qw99-6xq9.

Workarounds

  • Implement network segmentation to limit access to the OpenEMR application
  • Restrict user permissions for the eye exam module to only essential personnel
  • Deploy application-level access controls to enforce patient-provider relationships
  • Enable comprehensive audit logging to detect potential abuse while awaiting patch deployment
bash
# Review Apache access logs for potential exploitation attempts
grep "eye_mag/new.php" /var/log/apache2/access.log | awk '{print $1, $7}' | sort | uniq -c | sort -rn

# Check for multiple form_id accesses from single IP addresses
grep "form_id=" /var/log/apache2/access.log | grep "eye_mag" | cut -d' ' -f1 | sort | uniq -c | sort -rn | head -20

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOpenemr

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-639
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-q96x-qw99-6xq9
  • Related CVEs
  • CVE-2026-34053: OpenEMR Auth Bypass Vulnerability

  • CVE-2026-34055: OpenEMR Auth Bypass Vulnerability

  • CVE-2026-33305: OpenEMR FaxSMS Auth Bypass Vulnerability

  • CVE-2026-33304: OpenEMR Authorization Bypass 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