LiveActive security incident?Get immediate response
CVE Record

CVE-2026-25147: OpenEMR's Portal Payment Endpoint Trusts User-Controlled pid

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.

HighCVSS 7.1Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

OpenEMR versions before 8.0.0 let a logged-in patient portal user influence which patient record the payment page uses. This can expose another patient’s demographics, invoices, and payment history. The issue affects confidentiality most and has limited integrity impact. A fix is available in OpenEMR 8.0.0.

Executive priority

Prioritize remediation for healthcare environments using OpenEMR patient portal payments. The issue can expose protected patient and billing information to other authenticated portal users. Because a vendor fix exists, upgrade planning should be treated as a near-term privacy and compliance risk reduction task.

Technical view

In portal/portal_payment.php, OpenEMR overwrites the authenticated session patient ID with request-controlled pid or hidden_patient_code values. Because the page then uses that value without proper authorization, an authenticated portal user can perform horizontal privilege escalation/IDOR. CVSS is 7.1 high: network-accessible, low complexity, low privileges, no user interaction, high confidentiality impact.

Likely exposure

Organizations running OpenEMR before 8.0.0 with the patient portal and portal payment functionality exposed are likely affected. Exploitation requires a valid portal account, so exposure is primarily authenticated patient users rather than unauthenticated internet traffic.

Exploitation context

The source bundle does not report active exploitation, and KEV status is false. Abuse would require portal authentication and relies on improper trust of patient identifiers supplied in requests. The practical business concern is unauthorized access to patient billing and demographic information.

Researcher notes

This is CWE-639 authorization bypass through user-controlled key. The vulnerable behavior is specifically documented as request parameters replacing the session patient ID in portal/portal_payment.php. Avoid assuming broader OpenEMR modules are affected unless separately verified from vendor sources.

Mitigation direction

  • Upgrade OpenEMR to version 8.0.0 or later.
  • Review the GitHub advisory and vendor guidance for deployment-specific instructions.
  • Restrict portal access where possible until upgraded.
  • Review patient portal payment logs for unusual cross-patient access patterns.

Validation and detection

  • Inventory OpenEMR instances and confirm versions are below or at 8.0.0.
  • Confirm whether the patient portal and payment page are enabled.
  • Verify the installed code includes the vendor fix commit or release 8.0.0.
  • Check logs for unexpected portal payment access involving multiple patient identifiers.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-639: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Privilege behavior lookup

The CVE wording references privilege impact, so privilege escalation and authorization behavior review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-25147 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.1 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.1CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N2.84.2Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.1High
CVSS 3.1 vector shape for CVE-2026-25147Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
openemropenemr< 8.0.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-639 · source CWE mapping

Authorization Bypass Through User-Controlled Key

Authorization Bypass Through User-Controlled Key represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.