# CVE-2026-25147: OpenEMR's Portal Payment Endpoint Trusts User-Controlled pid

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-27T16:44:40.734Z
- Modified: 2026-06-17T10:24:11.420Z
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- openemr openemr: < 8.0.0
- open-emr openemr: before 8.0.0

## References

- <https://github.com/openemr/openemr/security/advisories/GHSA-mwmw-qxv3-8whh> (exploit, vendor-advisory)
- <https://github.com/openemr/openemr/commit/d6ab3cd0b621b19b942cf49d2db2026e288aa214> (patch)

## Sources

- CVE List: [CVE-2026-25147](https://www.cve.org/CVERecord?id=CVE-2026-25147), CVE Terms of Use, modified 2026-02-27
- NVD: [CVE-2026-25147](https://nvd.nist.gov/vuln/detail/CVE-2026-25147), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25147 · Whole record: https://cve.day/CVE-2026-25147.json · Rebuilt by cve.day 2026-11-25T22:59:15.031Z
