/

CVE-2026-126466

Severity:

HIGH RISK

(8.8)

Missing Authorization (CWE-862) in OpenEMR Patient APIs

CVE-2026-126466

Analyzed

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Unauthorized patient record creation and disclosure of sensitive health information

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

OpenEMR before 8.5.0 has missing authorization checks in patient-related endpoints, allowing authenticated users to create patient records and access patient information beyond their intended permissions. Depending on the endpoint, exposed data may include names, Social Security numbers, dates of birth, and insurance information.

Affected context

The issue affects patient-management functionality in OpenEMR versions before 8.5.0. The described endpoints include new_comprehensive_save.php, new_search_popup.php, and patient_select.php, where authorization checks such as aclCheckCore() are omitted. Risk arises when an authenticated user can reach these endpoints without an effective permission check for the requested operation or patient data.

Exploit preconditions

  • Attack surface: OpenEMR patient-management web endpoints
  • Required access: An authenticated account; the description does not specify a required privilege level
  • Trigger point: Requests to patient creation or search/selection endpoints
  • Why exploitation is possible: The affected paths omit authorization checks, so authentication alone may be sufficient to perform actions or retrieve information that should be permission-controlled

Why this happens

The underlying issue is a failure to enforce authorization at sensitive patient-management operations. Omitting access-control checks allows authenticated users to reach functionality or data outside their intended permissions, mapping to CWE-862: Missing Authorization. Authentication establishes a user's identity, but does not by itself establish permission to create records or view particular patients.

Potential impact

  • Authenticated users may create patient records without appropriate authorization
  • Patient names, Social Security numbers, dates of birth, or insurance information could be disclosed
  • Unauthorized record creation could affect the accuracy and integrity of patient data
  • Exposure of sensitive health information could lead to privacy and compliance consequences

General mitigation guidance

Defensive patterns focus on enforcing authorization consistently at every sensitive operation and data access point.

  • Apply deny-by-default access controls to patient creation, search, and selection actions
  • Check permissions for the specific operation and patient record on the server side
  • Treat authentication and authorization as separate requirements
  • Minimize the data returned by search and selection endpoints to what the user needs
  • Use least-privilege roles and review permission boundaries across patient workflows
  • Add centralized authorization controls where practical, while preserving checks at sensitive resource boundaries

How teams detect issues like this

Review patient-related routes and handlers for missing or inconsistently applied authorization checks, especially around record creation and patient search. Static analysis and code review can flag sensitive endpoints that lack access-control enforcement or rely only on authentication. Test authorization policies across roles and patient records, and monitor for unusual record-creation activity or broad access to patient identifiers.

Sources

SourceLink
github.comgithub.com/openemr/openemr/security/advisories/GHSA-cwpg-qv34-gx8x
vulncheck.comvulncheck.com/advisories/openemr-before-8.5.0-missing-authorization-in-patient-create-and-search-endpoints

Frequently asked

questions

The description indicates that any authenticated user may be able to create patient records or enumerate patient information through the affected endpoints. The exact scope may depend on deployment configuration and endpoint access.

Yes. The described issue requires an authenticated user; no unauthenticated access is specified.

Enforce server-side authorization for each sensitive action and patient resource, using deny-by-default decisions and least-privilege permissions.

Include authorization checks in patient workflow design, review every sensitive endpoint, and test access across roles and patient records as part of security testing.

Find out what's already
exploitable in your codebase.