{"id":"CVE-2026-25147","published":"2026-02-27T16:44:40Z","modified":"2026-02-27T18:27:59Z","title":"OpenEMR's Portal Payment Endpoint Trusts User-Controlled pid","vendor":"openemr","product":"openemr","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00256,"percentile":0.17396,"provenance":"source"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-mwmw-qxv3-8whh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/openemr/openemr/commit/d6ab3cd0b621b19b942cf49d2db2026e288aa214","tags":["x_refsource_MISC"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":3.48},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"openemr","affectedVersions":[{"vendor":"openemr","product":"openemr","versions":["< 8.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-27T18:27:48.774045Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-9036","exploited":false,"provenance":"source"}}