Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to patient portal
-
ExploitTamper payment JSON (patientId, encounter, amount)
-
ExecutionSubmit nominal Rainforest payin with valid CSRF token
-
Impactpayin.authorized webhook writes forged cross-patient ar_activity credit
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Requires a valid authenticated patient-portal account (PR:L) on an OpenEMR instance before 8.4.0 that has the Rainforest payment gateway enabled (payment_gateway === 'Rainforest' with a patient_portal_onsite_two session), plus a valid 'rainforest' CSRF token which the legitimate portal flow supplies. The attacker then edits the JSON sent to portal_payment.rainforest.php to supply arbitrary patientId, encounter id, and amount values. Limiting factors: the Rainforest integration must be configured and in use (non-default for many deployments), the attacker must already hold portal credentials, and impact is confined to receivables/ar_activity integrity - there is no confidentiality (VC:N) or availability (VA:N) impact, no code execution, and no cross-system scope change (SC:N/SI:N/SA:N). |
| Impact | Signals are consistent and point to a real but bounded priority. The supplied CVSS 4.0 vector (AV:N/AC:L/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N, score 7.1 High) shows a network-reachable, low-complexity flaw any authenticated portal patient (PR:L, no user interaction) can trigger, with integrity-only impact (VI:H) on billing records and no confidentiality or availability effect (VC:N/VA:N). It is NOT listed in CISA KEV and no EPSS score was provided, so there is no evidence of confirmed active or widespread exploitation. Counterbalancing that, the vendor GHSA advisory (reported by VulnCheck) contains full source-code analysis and documents an executed PoC that credited victim pid=5 / encounter 602001 with $9999.00 from a $1.00 payment, so exploitability is well established. The vuln.today decision label is this_week, not emergency. Net: a genuine priority for OpenEMR deployments that have the Rainforest payment gateway enabled, but the impact is financial-record falsification rather than system or account compromise, and it is gated behind a valid portal login and the Rainforest configuration, making it a high-but-bounded issue to patch this week rather than a drop-everything emergency. |
| Exploit ScenarioDerived | An authenticated OpenEMR patient-portal user begins a Rainforest payment and modifies the JSON body POSTed to portal_payment.rainforest.php, substituting another patient's patientId and encounter id with an inflated dollar/encounter value while paying only a nominal amount. Because the server trusts the browser-supplied values instead of deriving them from the portal session, the signed payin.authorized webhook writes a forged ar_activity credit against the victim's encounter (the advisory's executed PoC turned a $1.00 payment into a $9999.00 credit for another patient). AV:N/AC:L/PR:L means any logged-in portal patient can do this remotely with low complexity and no user interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 08, 2026
Authenticated patient-portal users on OpenEMR before 8.4.0 can forge receivables credits against other patients' encounters through the Rainforest payment flow: the reporter's proof of concept turned a $1.00 payment into a $9,999.00 credit posted to a different patient's encounter while the actual session total stayed at $1.00. The flaw is an integrity-only authorization failure (CVSS 4.0 7.1, VC:N/VI:H/VA:N, PR:L) that requires the instance to have the Rainforest gateway configured and in use, plus a valid portal session and the 'rainforest' CSRF token that the normal portal page supplies. A proof-of-concept was demonstrated by the reporting researcher; there is no KEV listing or confirmed release of working public exploit code, and the vendor has shipped a fix in 8.4.0.
RemediationAI
Vendor-released patch: OpenEMR 8.4.0 - upgrade all instances below that version, per the advisory at https://github.com/openemr/openemr/security/advisories/GHSA-525m-fch5-vqqm and the VulnCheck advisory. Because the vulnerable path exists only when the Rainforest gateway is active, an interim control for sites that cannot upgrade immediately is to switch payment_gateway away from Rainforest (or leave it unconfigured) so portal_payment.rainforest.php is not reachable, accepting that patient-portal card payments through Rainforest stop working until the upgrade lands; this does not remediate the underlying trust defect in the setup endpoint, it only removes the exposed code path. Complement the upgrade by reviewing recently posted patient payments for ar_activity rows whose pay_amount exceeds the corresponding ar_session.pay_total, or whose metadata patientId/encounter does not match the paying patient - the advisory's demonstrated case credited a victim encounter with $9,999.00 against a $1.00 session total - and reverse any forged credits found. Rotating portal credentials is not a mitigation, since the attacker in this scenario is a legitimately authenticated portal patient holding a valid 'rainforest' CSRF token.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-639 (Authorization Bypass Through User-Controlled Key) in OpenEMR's PHP patient-portal payment pipeline. When payment_gateway is set to 'Rainforest' and the session carries patient_portal_onsite_two, portal/portal_payment.php injects the Rainforest client script, which reads patientId from the hidden_patient_code DOM field and per-encounter allocations (id, code, codeType, value) from mutable input.amount_field elements and POSTs them as JSON to portal_payment.rainforest.php. That endpoint verifies only the 'rainforest' CSRF token and then hands the raw body to GetPayinComponentParameters::parseRawRequest, which json_decodes dollars, patientId and encounters and passes them unchanged into Rainforest\Api::getPaymentComponentParameters. The API wrapper splits the payload: 'amount' carries the real authorized amount, while the attacker-controlled patient and encounter allocation are stored separately in the payin_config metadata object. Because the metadata is echoed back in the signed payin.authorized webhook and treated as billing truth, Webhooks\RecordPayment writes ar_activity.pay_amount from the metadata amount and ar_activity.patientId from the metadata patientId, while ar_session.pay_total is populated from the genuine webhook amount. The trust boundary that is missing is a rebinding of patientId, encounter identifiers and allocation values to the authenticated portal session; the trigger is documented in the advisory's code path (tampering with the JSON body of the setup request), and the CSRF token is not a barrier because the legitimate portal flow supplies it. The CPE cpe:2.3:a:openemr:openemr:* confirms all builds below 8.4.0 are in scope; the 'Authentication Bypass' feed tag is imprecise, as the issue is post-authentication authorization, not credential bypass. Not affected in the assessed vector: confidentiality (VC:N), availability (VA:N) and any scope change (SC:N/SI:N/SA:N) - there is no code execution and no cross-system impact.
Know when Openemr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Any authenticated portal patient can tamper the request remotely with low complexity (PR:L, AC:L, UI:N); impact is integrity-only falsification of billing data (I:H, C:N, A:N) with no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenEMR before 8.4.0 contains an improper authorization vulnerability in Rainforest patient portal payments that trusts browser-supplied patientId, encounter, and amount values instead of deriving them from the portal session. Authenticated portal patients can tamper with JSON sent to portal_payment.rainforest.php so the payin.authorized webhook writes forged ar_activity credits to other patients' encounters exceeding the amount actually paid.
Technical POC Analysis
CWE-639 (Authorization Bypass Through User-Controlled Key), in OpenEMR's Rainforest patient-portal payment path.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
OpenEMR versions before 8.4.0 contain a high-severity authorization flaw in the Rainforest payment workflow that lets authenticated patient-portal users post fraudulent credits to other patients' encounters, manipulating receivables and financial records. Any healthcare organization running an affected OpenEMR instance with the Rainforest gateway enabled is exposed to billing fraud, inaccurate patient financial records, and potential compliance and audit risk. Leadership should prioritize remediation because the integrity of patient payment data and revenue cycle reporting is directly at stake.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to
Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.
Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.
Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the
SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl
An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par
Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.
Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so
interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel
Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms
interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication
EUVD-2026-119536
GHSA-r67g-7xmv-5q36
NVD
CVE.org
EPSS
Exploit-DB