Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessForge unsigned id_token_hint JWT with bogus aud/sub
-
DeliveryDeliver crafted /oauth2/default/logout link to victim
-
ExploitVictim clicks legitimate-looking OpenEMR logout link
-
ExecutionAbsent trusted session triggers unvalidated early-return redirect
-
PersistBrowser sent to phishing domain, victim session invalidated
-
ImpactCredentials harvested on attacker page
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires (1) an OpenEMR instance running a version prior to 8.3.0 with the REST API explicitly enabled (Admin > Globals > Enable OpenEMR REST API = On) - this is the specific non-default configuration that makes the /oauth2/default/logout end-session endpoint publicly reachable, and (2) the victim to click the attacker-crafted logout link (UI:R). No authentication and no pre-existing session are needed (PR:N): a forged, unsigned id_token_hint whose aud/sub match no trusted session always falls into the 'not signed in' early-return branch, which redirects to the raw post_logout_redirect_uri before the registered-URI allowlist check is reached. The limiting factors are therefore the required user interaction and the non-default REST-API-enabled deployment mode. |
| Impact | This is a genuine but modest-severity issue, and the signals are internally consistent rather than conflicting. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N = 4.3, Medium) correctly captures an unauthenticated, network-reachable open redirect whose only impact is low integrity (controlling where a user lands and invalidating their session), with no confidentiality or availability impact - the bug itself exposes no PHI. Two factors materially limit real-world risk: it requires victim interaction (UI:R - the target must click the attacker's link), and the vulnerable endpoint is only reachable when the OpenEMR REST API is explicitly enabled (Admin > Globals), which is not the default. Offsetting that, a detailed, working PoC is published in the vendor's own GHSA advisory and was confirmed by the reporter against the official openemr/openemr Docker image, and the redirect originates from the legitimate logout endpoint so it is highly convincing for phishing against clinical/patient users. It is NOT in CISA KEV (no confirmed active exploitation), and no EPSS score was provided in the input, so exploitation probability cannot be quantified here. The vendor priority label is 'this_month', not emergency - treat as a prompt-but-not-crisis patch item, weighted up because of the healthcare/PHI context and the public PoC. |
| Exploit ScenarioDerived | An attacker crafts an OIDC end-session link to a real OpenEMR instance (REST API enabled) containing a forged, unsigned id_token_hint and a post_logout_redirect_uri pointing to their own domain, then sends it to a clinician or patient as a 'log out' link. Because the referenced session does not exist, the code hits an early-return path and issues a 307 redirect to the attacker domain without validating it against the client's registered URIs, landing the victim on a phishing page while their session is invalidated. A complete working PoC (curl request returning the 307 redirect) is published in the GHSA advisory and confirmed against the official Docker image. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 05, 2026
Open redirect in OpenEMR's OIDC end-session endpoint (/oauth2/default/logout) affects versions prior to 8.3.0: the handler base64-decodes the caller-supplied id_token_hint without verifying its JWT signature, and when the forged aud/sub pair matches no trusted session it takes an early-return path that redirects to the raw post_logout_redirect_uri before the registered-URI allowlist check is ever reached. An unauthenticated remote attacker can therefore craft a logout link that invalidates a visitor's session and forwards them to an arbitrary external site from the legitimate OpenEMR logout URL, which is a strong setup for credential phishing against clinical staff and patients in a system holding PHI; the victim must click the link (UI:R), and the endpoint is only publicly reachable when the OpenEMR REST API has been explicitly enabled. A reproduction recipe is published in the vendor advisory, no active exploitation has been confirmed (no CISA KEV listing), and the flaw is fixed in 8.3.0.
RemediationAI
Vendor-released patch: OpenEMR 8.3.0 (release tag v8_3_0, https://github.com/openemr/openemr/releases/tag/v8_3_0); upgrading is the complete fix and the advisory GHSA-5h9g-m7q2-pv45 plus commit 50f789fad45ada625fe8d0faf0c7a9c15ef52aa5 and PR https://github.com/openemr/openemr/pull/13133 describe the change, which routes both logout branches through a buildLogoutRedirectIfAllowlisted() helper and coerces a non-string aud claim to an empty string instead of using it directly. Where upgrading cannot be done immediately, the practical compensating control is to turn off Admin > Globals > Enable OpenEMR REST API, which removes public reachability of /oauth2/default/logout and therefore of the redirect; the trade-off is that any REST/API integration or OAuth2 client relying on that API stops working while it is disabled. Restricting network access to the /oauth2/ path (for example at the reverse proxy) reduces exposure with the same functional cost, and users should be told to treat unexpected post-logout redirects as suspicious while unpatched instances remain in service.
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
OpenEMR is a PHP electronic health records and practice-management application; this issue lives in src/RestControllers/AuthorizationController.php, in userSessionLogout(), which implements the OIDC RP-initiated logout flow (the end_session_endpoint advertised in the OIDC discovery document). Per the OIDC spec, an id_token_hint should be a signed JWT whose signature is validated before its claims are trusted, and post_logout_redirect_uri must match a URI pre-registered for the client (stored in the oauth_clients.logout_redirect_uris column). Here decodeToken() is a plain json_decode(HttpUtils::base64url_decode($token), true) call, so only the payload segment is decoded and the signature is ignored entirely, letting an attacker fabricate arbitrary aud, sub and nonce claims. When trustedUser() finds no session for that fabricated client/user pair, the 'not signed in' branch returns HTTP 307 with Location set to $post_logout_url . "?state=$state" without consulting the oauth_clients table; the allowlist query at the later line is only reached in the normal logout path. The defect is CWE-601 (URL Redirection to Untrusted Site / Open Redirect). Reachability depends on the deployment: the /oauth2/default/logout route is served by the REST API layer, so an instance with 'Enable OpenEMR REST API' left Off in Admin > Globals does not expose the endpoint, while an instance with it On exposes the redirect to unauthenticated users. The trigger is a single crafted GET request containing a three-segment fake JWT and a post_logout_redirect_uri parameter; no credentials or pre-existing session are involved.
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
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Unauthenticated and network-reachable (PR:N/AV:N), but needs the victim to click the link (UI:R); open redirect plus session invalidation is low integrity only, no C or A impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.3.0, userSessionLogout() in src/RestControllers/AuthorizationController.php uses decodeToken() to process an id_token_hint without verifying its signature and, when the referenced trusted session is absent, redirects to the caller-supplied post_logout_redirect_uri before validating it against the client's registered redirect URIs. An unauthenticated attacker can craft a logout link that sends a user to an arbitrary external site and invalidates the user's session, enabling convincing phishing flows from the legitimate logout endpoint. The endpoint is reachable when the OpenEMR REST API is enabled. This issue is fixed in version 8.3.0.
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
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-117776
NVD
CVE.org
EPSS
GitHub
Exploit-DB