CVE-2026-134020: 
OpenEMR Analyse et atténuation de la vulnérabilité

Aperçu

CVE-2026-134020 is a missing authorization vulnerability in OpenEMR's patient portal OnsiteActivityView API that allows any authenticated staff account to read sensitive patient demographics — including names, dates of birth, addresses, and Social Security numbers — without the required patients/demo permission. It affects all OpenEMR versions prior to 8.5.0 and was published on November 23, 2026. The vulnerability was reported by researcher skraft9 and disclosed via GitHub Security Advisory GHSA-9f97-gqgj-wr6g. It carries a CVSS v3.1 base score of 6.5 (Medium) (GitHub Advisory, Feedly).

Détails techniques

The root cause is CWE-862 (Missing Authorization) in OnsiteActivityViewController.php. The two affected endpoints — GET api/onsiteactivityviews and GET api/onsiteactivityview/{id} — are declared with p_acl => 'p_none' in portal/patient/_app_config.php, but the ACL enforcement in GenericRouter.php only applies when bootstrap_pid is non-empty (i.e., for portal patient sessions). Staff sessions have an empty bootstrap_pid, so the ACL check is skipped entirely. OnsiteActivityViewController::Query() returns all records without patient scoping, and ::Read() loads any record by primary key without ownership verification; the underlying OnsiteActivityViewReporter::GetCustomQuery() performs a SQL JOIN across onsite_portal_activity, patient_data, and users, selecting SSN (ss), DOB, full name, and mailing address. Unlike sibling controllers (OnsitePortalActivityController, PatientController) that enforce session-bound PID checks, OnsiteActivityViewController performs no authorization check whatsoever (GitHub Advisory, Fix PR).

Impact

Successful exploitation results in bulk disclosure of highly sensitive Protected Health Information (PHI) and Personally Identifiable Information (PII) for every patient who has used the OpenEMR patient portal. A single unauthenticated GET request from any staff account — even one explicitly denied the patients/demo permission — returns all portal-using patients' names, dates of birth, Social Security numbers, and mailing addresses. Integrity and availability are not affected; the impact is entirely on confidentiality. In multi-facility deployments, this crosses all internal ACL boundaries the system is designed to enforce, and the exposed data (SSN, DOB, address) constitutes the core PHI/PII a healthcare records system is legally required to protect (GitHub Advisory).

Exploitabilité

A proof-of-concept shell script (poc.sh) was included in the security advisory, demonstrating exploitation with a single HTTP GET request after authenticating as any low-privilege staff account. No special tools or elevated permissions are required beyond a valid OpenEMR staff session. The EPSS score is 0.0, indicating low current automated exploitation probability, and there is no evidence of in-the-wild exploitation or CISA KEV catalog listing as of the disclosure date. The only precondition beyond an authenticated account is that at least one onsite_portal_activity row exists, which is created by ordinary patient portal use (GitHub Advisory, Feedly).

Étapes d’exploitation

  1. Reconnaissance: Identify an OpenEMR instance running a version prior to 8.5.0 with the patient portal enabled (the portal is a standard, widely enabled feature). Confirm the instance is reachable over the network.
  2. Obtain any staff credentials: Acquire credentials for any authenticated OpenEMR staff account, including the lowest-privilege role (e.g., a scheduling-only clerk with no patient demographics permission).
  3. Authenticate and capture session cookie: Send a POST login request to /interface/main/main_screen.php?auth=login&site=default with valid credentials and store the session cookie:
    curl -s -c /tmp/oe.cookies -b /tmp/oe.cookies -o /dev/null \
      --data-urlencode 'new_login_session_management=1' \
      --data-urlencode 'authUser=clerk_nodemo' \
      --data-urlencode 'clearPass=Password123!' \
      'http://TARGET/interface/main/main_screen.php?auth=login&site=default'
  4. Call the vulnerable API endpoint: Issue a single GET request to the OnsiteActivityView Query endpoint using the captured session cookie:
    curl -s -b /tmp/oe.cookies \
      'http://TARGET/portal/patient/index.php?_REWRITE_COMMAND=api/onsiteactivityviews'
  5. Extract patient data: Parse the JSON response, which contains ss (SSN), DOB, fname, lname, street, city, state, postal_code, and portal activity audit fields for every patient with a portal activity row — all returned without any authorization check.
  6. Read individual records: Optionally, query specific records by ID via GET api/onsiteactivityview/{id} to retrieve a single patient's joined demographics (GitHub Advisory).

Indicateurs de compromis

  • Network: Unusual HTTP GET requests to /portal/patient/index.php?_REWRITE_COMMAND=api/onsiteactivityviews or /portal/patient/index.php?_REWRITE_COMMAND=api/onsiteactivityview/<id> from staff session cookies; large JSON responses from these endpoints containing "ss": fields.
  • Logs: Web server access logs showing repeated or bulk GET requests to the api/onsiteactivityviews endpoint from staff accounts, especially accounts not normally associated with patient demographics access; OpenEMR audit logs showing access to portal activity view endpoints by accounts lacking patients/demo ACL.
  • Behavioral: Staff accounts with restricted roles (e.g., scheduling-only, billing-only) accessing portal API endpoints; access to the OnsiteActivityView API from accounts that are simultaneously denied access to /interface/patient_file/summary/demographics.php (GitHub Advisory).

Atténuation et solutions de contournement

Upgrade to OpenEMR version 8.5.0, which was released on October 27, 2026, and contains the fix for this vulnerability. The fix (PR #13965, commit 0d9fc44) adds a new p_staff ACL designation to the affected routes in _app_config.php, updates GenericRouter.php to enforce this designation for staff sessions, and adds explicit patientportal/portal and patients/demo ACL checks at the start of OnsiteActivityViewController::Query() and ::Read(). No configuration-based workaround is available for unpatched versions; disabling the patient portal entirely would prevent exploitation but is not practical for most deployments (OpenEMR Release, Fix PR, Fix Commit).

Réactions de la communauté

The vulnerability was disclosed responsibly through GitHub's security advisory process by researcher skraft9, with the OpenEMR maintainer bradymiller publishing the advisory. The fix was developed by contributor sjpadgett and merged promptly (September 17, 2026, ahead of the October 27, 2026 release). The advisory notes that this is a single missed authorization site rather than a systemic gap, as sibling controllers in the same directory correctly enforce authorization. No significant broader media coverage or social media discussion has been identified beyond the GitHub advisory and standard vulnerability database aggregators (GitHub Advisory, Fix PR).

Ressources supplémentaires


Source: Ce rapport a été généré à l’aide de l’IA

Connexe OpenEMR Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

CVE-2026-126491HIGH8.3
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NonOuiNov 13, 2026
CVE-2026-126494HIGH7.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NonOuiNov 13, 2026
CVE-2026-126492HIGH7.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NonOuiNov 13, 2026
CVE-2026-134020MEDIUM6.5
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NonOuiNov 23, 2026
CVE-2026-126493MEDIUM4.8
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NonOuiNov 13, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités