{"id":78179,"date":"2026-02-27T20:14:40","date_gmt":"2026-02-27T16:44:40","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-25147-openemrs-portal-payment-endpoint-trusts-user-controlled-pid\/"},"modified":"2026-02-27T20:14:40","modified_gmt":"2026-02-27T16:44:40","slug":"cve-2026-25147-openemrs-portal-payment-endpoint-trusts-user-controlled-pid","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-25147-openemrs-portal-payment-endpoint-trusts-user-controlled-pid\/","title":{"rendered":"CVE-2026-25147 &#8211; OpenEMR&#8217;s Portal Payment Endpoint Trusts User-Controlled pid"},"content":{"rendered":"<p>CVE ID : CVE-2026-25147<\/p>\n<p>Published :  Feb. 27, 2026, 4:44 p.m. | 27\u00a0minutes ago<\/p>\n<p>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[&#8216;pid&#8217;] ?? $pid` and `$pid = ($_REQUEST[&#8216;hidden_patient_code&#8217;] ?? null) &gt; 0 ? $_REQUEST[&#8216;hidden_patient_code&#8217;] : $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&#8217;s demographics, invoices, and payment history\u2014horizontal privilege escalation and IDOR. Version 8.0.0 contains a fix for the issue.<\/p>\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2026-25147 Published : Feb. 27, 2026, 4:44 p.m. | 27\u00a0minutes ago 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[&#8216;pid&#8217;] ?? $pid` and &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-78179","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=78179"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78179\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=78179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=78179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=78179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}