CVE-2026-25147OpenEMR's Portal Payment Endpoint Trusts User-Controlled pid
Updated under an hour ago ()
Does this affect you?
It affects openemr and 1 other product. Add what you run to find out whether that includes you.
EPSS puts the chance of exploitation in the next 30 days at 0.23%, higher than 13% of scored CVEs.
Do this next
Free account, 1 product
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
- 7.1 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
- Weakness (CWE)
- CWE-639
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- 0.23% (percentile 13)
- Assigned by
- GitHub_M
- NVD analysis
- Analyzed
- Record last updated
- Feb 27, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
openemr openemr openemr:openemr (from the name) | before 8.0.0 | CNA record |
open-emr openemr open-emr:openemr | before 8.0.0 | NVD |
References
- https://github.com/openemr/openemr/security/advisories/GHSA-mwmw-qxv3-8whhx-refsource-confirm, exploit, vendor-advisory
- https://github.com/openemr/openemr/commit/d6ab3cd0b621b19b942cf49d2db2026e288aa214x-refsource-misc, patch
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.