CVE-2026-124476

OpenEMR before 8.3.0 IDOR via form_pid in portal/lib/paylib.php

Published Nov 8, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
OpenEMR before 8.3.0 contains an insecure direct object reference in portal/lib/paylib.php, which writes the request-supplied form_pid (or the patient_id_cc value in Sphere data) to onsite_portal_activity without checking it against the session patient. Authenticated portal patients can submit portal-save, review-save, AuthorizeNet, Stripe, or Sphere requests to insert or modify forged payment-audit records in other patients' billing records.

Analysis

AI-generated

Technical impact

OpenEMR versions before 8.3.0 contain an insecure direct object reference in the file portal/lib/paylib.php. The script writes the request‑supplied form_pid value, or the patient_id_cc from Sphere data, directly to onsite_portal_activity without verifying that it matches the ID of the authenticated patient. Because of this oversight, authenticated portal users can submit portal‑save, review‑save, AuthorizeNet, Stripe, or Sphere requests that create or modify payment‑audit records owned by other patients. The consequence is a loss of data integrity and the potential for financial fraud, as an attacker can alter billing records of unrelated patients.

Affected Systems

OpenEMR before 8.3.0 is affected. All releases of the OpenEMR portal before 8.3.0 contain the vulnerable file portal/lib/paylib.php and are listed as impacted.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity vulnerability that could be leveraged by authenticated users. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog, so current exploitation frequency is unknown. However, because the attack requires only legitimate portal authentication, an attacker who obtains a patient’s credentials could submit forged payment requests and modify other patients’ billing records. The lack of an EPSS score makes precise probability assessment difficult, but the high CVSS suggests the potential impact is serious.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenEMR to version 8.3.0 or later
  • If upgrading immediately is not possible, disable or restrict the payment‑processing endpoints (portal‑save, review‑save, AuthorizeNet, Stripe, and Sphere) from the portal for all patients or limit them to administrators
  • Insert a server‑side validation that ensures the form_pid (or patient_id_cc) supplied in payment requests matches the authenticated patient’s ID before writing to onsite_portal_activity

Generated by OpenCVE AI on November 8, 2026 at 14:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description OpenEMR before 8.3.0 contains an insecure direct object reference in portal/lib/paylib.php, which writes the request-supplied form_pid (or the patient_id_cc value in Sphere data) to onsite_portal_activity without checking it against the session patient. Authenticated portal patients can submit portal-save, review-save, AuthorizeNet, Stripe, or Sphere requests to insert or modify forged payment-audit records in other patients' billing records.
Title OpenEMR before 8.3.0 IDOR via form_pid in portal/lib/paylib.php
First Time appeared Open-emr
Open-emr openemr
Weaknesses CWE-639
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 13, 2026, 3:27 AM
Reserved
Nov 8, 2026, 2:17 AM
Status
Analyzed
Published
Nov 8, 2026, 2:18 PM
Modified
Nov 17, 2026, 5:55 PM