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

High 7.1 Published Updated

Attackers can access and modify other patients' data by manipulating the patient ID parameter in the payment portal.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-25147?

CVE-2026-25147 is a high-severity missing authorization vulnerability in Open-Emr Openemr, published on 27 Feb 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-639

Which versions are affected by CVE-2026-25147?

It affects 1 product.

Products include Open-Emr Openemr.

How do I fix CVE-2026-25147?

No fix has been published for CVE-2026-25147 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-25147 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25147 exists.

All Open-Emr Openemr vulnerabilities

Sources

Also known as GHSA-mwmw-qxv3-8whh.

Is CVE-2026-25147 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free