CVE-2026-25147
IDOR in OpenEMR Portal Allows Patient Data Exposure
Publication date: 2026-02-27
Last updated on: 2026-03-03
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| open-emr | openemr | to 8.0.0 (exc) |
Helpful Resources
Exploitability
| 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.