{"id":"CVE-2026-25147","aliases":["CVE-2026-25147"],"related":[],"kind":"vulnerability","state":"published","title":"OpenEMR's Portal Payment Endpoint Trusts User-Controlled pid","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"OpenEMR es una aplicación de gestión de registros médicos electrónicos y práctica médica de código abierto y gratuita. Antes de la versión 8.0.0, en 'portal/portal_payment.php', el ID de paciente utilizado para la página se toma de la solicitud ('$pid = $_REQUEST['pid'] ?? $pid' y '$pid = ($_REQUEST['hidden_patient_code'] ?? null) &gt; 0 ? $_REQUEST['hidden_patient_code'] : $pid') en lugar de estar fijo al usuario autenticado del portal. La sesión del portal ya tiene un '$pid' válido para el paciente que ha iniciado sesión. Sobrescribirlo con valores proporcionados por el usuario y usarlo sin autorización permite a un usuario del portal ver e interactuar con los datos demográficos, facturas e historial de pagos de otro paciente —escalada de privilegios horizontal e IDOR. La versión 8.0.0 contiene una solución para el problema.","source":"nvd"}],"published":"2026-02-27T16:44:40.734Z","modified":"2026-06-17T10:24:11.420Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"}],"cwes":["CWE-639"],"affected":[{"ranges":[{"version":"< 8.0.0","status":"affected"}],"vendor":"openemr","product":"openemr","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"8.0.0"}],"vendor":"open-emr","product":"openemr","cpe":"cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-mwmw-qxv3-8whh","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openemr/openemr/commit/d6ab3cd0b621b19b942cf49d2db2026e288aa214","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-02-27T18:27:48.774Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25147","url":"https://www.cve.org/CVERecord?id=CVE-2026-25147","licence":"CVE Terms of Use","modified":"2026-02-27T18:27:59.160Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25147","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25147","licence":"Public domain","modified":"2026-06-17T10:24:11.420Z"}],"updatedAt":"2026-11-25T22:59:15.031Z","epss":{"score":0.00256,"percentile":0.18449,"date":"2026-12-01T12:00:22.000Z"}}