Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege staff
-
DeliveryCapture core session cookie
-
ExploitPOST mode=save_profiles with profiles=[]
-
ExecutionTrigger unguarded DELETE on document_template_profiles
-
ImpactWipe all portal template assignments
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two concrete conditions stated in the advisory: (1) a valid authenticated OpenEMR staff account able to load a normal core session - even a low-privilege role such as Front Office suffices, because the intended admin/forms ACL is not enforced; and (2) the patient portal must be enabled via the portal_onsite_two_enable setting, since the vulnerable endpoint is portal/import_template.php. The affected modes (save_profiles, send_profiles, send, update_category, get, getPdf) run with no admin/forms ACL check and no CSRF token requirement, in contrast to mode=save which is correctly guarded. Limiting factors for defenders: the attacker needs working staff credentials (not pre-auth), the portal feature must be on, and note that the destructive save_profiles path returns a 'Profiles save failed' error message even though the DELETE has already executed - an error response does NOT mean data is safe. |
| Impact | This is a genuine but bounded priority rather than an internet-facing emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) and base score of 7.2 (HIGH) show a network-reachable, low-complexity flaw that nonetheless requires an authenticated staff session (PR:L) - so it is not a pre-auth mass-exploitation candidate. The dominant impact is integrity (VI:H): any low-privilege staff user can unconditionally wipe all portal document-template profile assignments and push templates to patients, with secondary low confidentiality (template body disclosure) and low availability (portal workflow disruption). VulnCheck's advisory documents concrete, confirmed-on-live-instance reproduction (tested against the 8.2.0 Docker image), which raises practical credibility above a theoretical finding. Signal gaps to note explicitly: no EPSS score was provided, so statistical exploitation likelihood cannot be quoted; the CVE is NOT listed in CISA KEV, so there is no evidence of active in-the-wild exploitation; and no SSVC automatable/technical-impact decision tree was supplied - only the vuln.today 'this_week' priority label, which is consistent with 'patch on a normal remediation cycle, not drop-everything.' The requirement for valid staff credentials plus the patient portal being enabled is the main factor keeping real-world risk below what the 7.2 score alone implies, so this is best treated as a trusted-insider / post-account-compromise escalation and data-integrity risk rather than a broadly wormable issue. |
| Exploit ScenarioDerived | A low-privilege staff user (e.g. Front Office) with a normal OpenEMR session sends a crafted POST to portal/import_template.php with mode=save_profiles and profiles=[]; the endpoint runs an unconditional DELETE on document_template_profiles and wipes every portal template assignment, even though it returns a 'Profiles save failed' error. The same unguarded modes (send, send_profiles, update_category, get, getPdf) let the attacker push templates to patients, change categories, or read arbitrary template HTML/PDF bodies. Full HTTP reproduction steps are published in the vendor GHSA advisory and were confirmed against a live OpenEMR 8.2.0 instance. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Missing authorization in OpenEMR's patient-portal document template endpoint (portal/import_template.php) allows any authenticated staff account - even a low-privilege Front Office role - to delete every portal document-template profile assignment, push templates to patients, change template categories, and read stored template HTML/PDF bodies. The affected modes (save_profiles, send_profiles, send, update_category, get, getPdf) run without the intended admin/forms ACL check and without CSRF validation, unlike mode=save which is correctly guarded. Exploitation requires working staff credentials and an enabled patient portal (portal_onsite_two_enable), which bounds the exposure; this is a genuine but bounded priority rather than an internet-facing emergency, with a vendor patch available in OpenEMR 8.5.0 and public reproduction steps documented in the GitHub security advisory (a public PoC reference, not independently confirmed as weaponized exploit code). No CISA KEV listing or active exploitation is reported in the available data.
RemediationAI
Vendor-released patch: OpenEMR 8.5.0 - upgrade from any earlier release to 8.5.0, which is the fixed version per the vendor advisory (https://github.com/openemr/openemr/security/advisories/GHSA-phvv-q7m7-8mc2) and the VulnCheck advisory (https://www.vulncheck.com/advisories/openemr-before-8.5.0-missing-authorization-via-portal-import-template-php). The upstream fix scopes every sensitive mode in portal/import_template.php (save_profiles, send_profiles, send, update_category, get, getPdf) behind AclMain::aclCheckCore('admin', 'forms') and adds CSRF checks consistent with mode=save, ideally via a single authorization gate before the mode switch; the advisory also recommends moving the unconditional mass DELETE in DocumentTemplateService::saveAllProfileTemplates() behind a validated non-empty write or a transactional replace so a failed save cannot wipe existing profile links. If upgrading cannot be done immediately, the concrete compensating control supported by the reported prerequisites is to disable the patient portal (portal_onsite_two_enable) so portal/import_template.php is no longer reachable - the trade-off is loss of all patient-facing portal functionality. As a narrower interim measure, restrict access to /portal/import_template.php at the web server or reverse proxy for accounts that are not intended template administrators, accepting that this is a coarse control which can break legitimate admin template management. When investigating suspected exploitation, do not treat the 'Profiles save failed' error response as evidence the data is intact: check document_template_profiles for missing rows with template_id > 0, review category changes and any template sends to patients, and audit mode=get/getPdf requests from non-admin staff sessions. Patch status is confirmed by the vendor advisory; no version-independent workaround fully reproduces the missing ACL and CSRF enforcement.
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-based electronic health record and practice management platform; portal/import_template.php is the administrative handler for patient-portal document templates and dispatches behavior on a POST 'mode' parameter. The file correctly gates template content operations (mode=save, upload, delete) behind AclMain::aclCheckCore('admin', 'forms') and CsrfUtils::checkCsrfInput, but the mode switch was extended with additional sensitive modes that were never placed behind that gate, so the authorization decision is per-branch rather than a single gate before dispatch. This is CWE-862 (Missing Authorization): an authenticated user lacking the admin/forms privilege reaches functionality reserved for administrators. The destructive path compounds the flaw with inadequate validation ordering - DocumentTemplateService::saveAllProfileTemplates() executes DELETE FROM document_template_profiles WHERE template_id > 0 before validating or writing the attacker-supplied profile array, so an empty profiles=[] payload still wipes all associations and then returns a 'Profiles save failed' error, meaning a failure response does not indicate the data survived. The confidentiality path (mode=get/getPdf) returns template bodies without the ACL check. The reporter confirmed the pattern on the Docker openemr/openemr:latest image at version 8.2.0 over live HTTP and on source commit 8e9418c (8.3.0-dev); the CPE cpe:2.3:a:openemr:openemr:*:*:*:*:*:*:*:* applies to the full pre-8.5.0 range. The CVSS v4.0 vector scores 7.2 with PR:L, VC:L, VI:H, VA:L, matching the assessed CVSS:3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L - integrity impact dominates, confidentiality and availability are limited.
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:L/VI:H/VA:L/SC:N/SI:N/SA:N
Authenticated staff session over the network with low complexity (PR:L, AV:N, AC:L, UI:N); integrity High from the unconditional mass delete, with Low confidentiality (template reads) and Low availability (workflow disruption).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenEMR before 8.5.0 contains a missing authorization vulnerability in portal/import_template.php, where several portal document template modes lack admin/forms ACL and CSRF checks. Any authenticated staff user can send mode=save_profiles to delete all template profile assignments, use other unguarded modes to push templates to patients or change categories, and read template bodies via mode=get or getPdf.
Technical POC Analysis
CWE-862, missing authorization.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A missing authorization flaw in OpenEMR's patient-portal document template endpoint lets any authenticated staff member, including low-privilege Front Office roles, delete template assignments, push templates to patients, alter categories, and read stored template content. The exposure is bounded to organizations running an enabled patient portal with staff accounts, but the affected data and actions touch patient-facing communications, so leadership should treat it as a genuine priority for prompt remediation. A vendor patch is available.
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
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
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-124938
GHSA-mvff-cgm7-frvw
NVD
CVE.org
EPSS
Exploit-DB