CVE-2026-25147
Received Received - Intake
IDOR in OpenEMR Portal Allows Patient Data Exposure

Publication date: 2026-02-27

Last updated on: 2026-03-03

Assigner: GitHub, Inc.

Description
OpenEMR is a free and open source electronic health records and medical practice management application. Prior to version 8.0.0, in `portal/portal_payment.php`, the patient id used for the page is taken from the request (`$pid = $_REQUEST['pid'] ?? $pid` and `$pid = ($_REQUEST['hidden_patient_code'] ?? null) > 0 ? $_REQUEST['hidden_patient_code'] : $pid`) instead of being fixed to the authenticated portal user. The portal session already has a valid `$pid` for the logged-in patient. Overwriting it with user-supplied values and using it without authorization allows a portal user to view and interact with another patient's demographics, invoices, and payment historyβ€”horizontal privilege escalation and IDOR. Version 8.0.0 contains a fix for the issue.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-27
Last Modified
2026-03-03
Generated
2026-05-27
AI Q&A
2026-02-27
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
open-emr openemr to 8.0.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-639 The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in OpenEMR versions prior to 8.0.0 in the portal_payment.php file. The patient ID used on the page is taken directly from user-supplied request parameters instead of being fixed to the authenticated portal user. Although the portal session already has a valid patient ID for the logged-in user, the code overwrites it with values from the request without proper authorization checks.

This allows a logged-in portal user to view and interact with another patient's demographics, invoices, and payment history, resulting in horizontal privilege escalation and an Insecure Direct Object Reference (IDOR) vulnerability.

The issue was fixed in OpenEMR version 8.0.0.


How can this vulnerability impact me? :

This vulnerability can allow an authenticated portal user to access sensitive information of other patients, including their demographics, invoices, and payment history.

Such unauthorized access can lead to privacy breaches, exposure of personal health information, and potential misuse of patient data.

It represents a serious security risk as it violates patient confidentiality and trust.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

I don't know


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, upgrade OpenEMR to version 8.0.0 or later, where the issue has been fixed.

The vulnerability arises because the patient ID in portal/portal_payment.php is taken from user-supplied request parameters instead of being fixed to the authenticated portal user, allowing unauthorized access to other patients' data.

Until the upgrade is applied, restrict access to the affected portal pages and monitor for suspicious activity involving patient ID parameters.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart