
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-124489 is a broken access control vulnerability (IDOR/Authorization Bypass) in OpenEMR's portal payment workflow, specifically in portal/portal_payment.php. It allows low-privilege authenticated users to bypass billing ACL checks by tampering with patient identifier parameters (pid and form_pid), enabling them to view payment pages and record fraudulent payment receipts for arbitrary patients. All OpenEMR versions before 8.3.0 are affected. The vulnerability was published on November 8, 2026, with the underlying GHSA advisory (GHSA-j2cx-3p5q-ppx5) originally published August 18, 2026. It carries a CVSS v3.1 base score of 7.1 (High) (GitHub Advisory, GHSA-59mr-wpc5-mhfg).
The root cause is classified as CWE-639 (Authorization Bypass Through User-Controlled Key). In portal/portal_payment.php, when accessed via a core (non-portal) session, the script accepts user-controlled patient identifiers without enforcing billing ACL checks: $pid = $_REQUEST['pid'] ?? $pid; and $pid = ($_REQUEST['hidden_patient_code'] ?? 0) > 0 ? $_REQUEST['hidden_patient_code'] : $pid;. For state-changing POST operations, the script trusts the user-supplied form_pid parameter ($form_pid = $isPortal ? $pid : $_POST['form_pid'];) and writes payment records for that patient without verifying the caller holds acct/bill or acct/eob write privileges — checks that are enforced in the standard billing endpoint (/interface/billing/new_payment.php). Additionally, no CSRF token verification is performed on the POST handler. The attack requires only a valid low-privilege authenticated core OpenEMR account and network access to the application (GitHub Advisory).
A successful attacker can view payment pages for any patient by manipulating the pid parameter (limited confidentiality impact) and record fraudulent payment receipts against arbitrary patients' billing records by tampering form_pid (high integrity impact). This can result in inaccurate patient balances, falsified financial records, audit log tampering, and unauthorized access to payment-related context for other patients. In regulated healthcare environments, unauthorized modification of financial records also increases compliance risk under frameworks such as HIPAA. There is no direct availability impact (GitHub Advisory, GHSA-59mr-wpc5-mhfg).
A proof-of-concept exploit flow is publicly documented in the vendor's GHSA advisory, detailing the exact endpoints, parameters, and request sequence needed to reproduce the vulnerability; no runnable exploit code has been published. NVD SSVC classifies exploitation status as "poc" and the attack as non-automatable with partial technical impact. The EPSS score is approximately 0.18–0.25%, indicating a low near-term exploitation probability. There is no evidence of active in-the-wild exploitation, no known threat actor attribution, and the vulnerability is not listed in the CISA KEV catalog (GitHub Advisory, GHSA-59mr-wpc5-mhfg).
GET /interface/billing/new_payment.php and verify the response contains "New Payment Not Authorized", confirming the account lacks standard billing access.GET /portal/portal_payment.php?pid=<target_patient_id> (e.g., pid=1, pid=2) and observe that the page renders payment context for the specified patient, including their name and a hidden form_pid field — confirming the missing ACL check./portal/portal_payment.php?pid=1 with a body containing form_pid=2, radio_type_of_payment=copay, and a payment amount. The pid in the URL and form_pid in the body intentionally reference different patients.GET requests to /portal/portal_payment.php with incrementing or varied pid values from a single authenticated session; POST requests to /portal/portal_payment.php where the pid query parameter and form_pid POST body parameter contain different patient IDs./portal/portal_payment.php with multiple distinct pid values in a short timeframe; POST requests to this endpoint from accounts not authorized for /interface/billing/new_payment.php.$isPortal is false in server-side logic) (GitHub Advisory).The primary remediation is to upgrade OpenEMR to version 8.3.0 or later, which addresses the missing ACL enforcement and patient-context binding in portal/portal_payment.php. As a workaround prior to patching, administrators should restrict network access to the /portal/portal_payment.php endpoint for non-portal sessions, or temporarily disable portal payment functionality. The vendor's suggested code fix involves adding AclMain::aclCheckCore('acct', 'bill', '', 'write') and AclMain::aclCheckCore('acct', 'eob', '', 'write') checks for core sessions and removing request-driven patient selection ($_REQUEST['pid']) in non-portal contexts. Additionally, organizations should audit existing billing records for unauthorized payment entries and review user accounts with access to the portal payment endpoint (GitHub Advisory, GHSA-59mr-wpc5-mhfg).
The vulnerability was reported by security researchers identified as Chid0k, j3ss1k4, and kojiromike, with remediation developed by kojiromike, as credited in the official OpenEMR GHSA advisory. The advisory was published by OpenEMR maintainer bradymiller. No significant broader media coverage, social media discussion, or notable external researcher commentary beyond the vendor advisory has been identified at this time (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."