Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege core user
-
ExploitSend direct POST to add_context.php or ajax_code.php
-
ExecutionBypass missing ACL and CSRF checks
-
ImpactTamper shared clinical-note templates and 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 Nation Notes to be enabled on the deployment and the attacker to already hold any authenticated core/staff OpenEMR account - notably one WITHOUT the nationnotes/nn_configure permission, since the UI gates configuration on that ACL but the ajax_code.php and add_context.php mutation handlers do not re-enforce it. The exact feature affected is shared Nation Notes template/context/category configuration and user assignment. Limiting factors: a valid session is mandatory (no anonymous access), impact is confined to clinical-note template integrity (no data theft or outage), and the issue only matters where Nation Notes is in use. The missing CSRF validation additionally allows the same mutations to be triggered via a cross-site request against a logged-in user's browser. |
| Impact | This is a moderate, not emergency, priority. All signals point to limited real-world severity despite a valid finding. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) confirms network-reachable, low-complexity exploitation but requires an existing authenticated account (PR:L) and yields only low integrity impact (VI:L) with no confidentiality or availability loss (VC:N/VA:N). The vuln.today decision label is 'this_month' - remediate in the normal patch cycle, not immediately. No EPSS score, no CISA KEV listing, and no SSVC automatable/technical-impact data were supplied; absence of KEV means there is no confirmed active exploitation. The GHSA advisory does include confirmed reproduction steps against v8.4.1, so a working exploitation method is publicly documented, but this is a post-authentication authorization gap affecting an internal clinical-template feature, not an unauthenticated RCE. Net: a genuine broken-access-control bug worth patching, but the low privilege requirement (any existing staff account) and integrity-only, feature-scoped impact keep real-world risk modest rather than critical. |
| Exploit ScenarioDerived | A low-privilege staff member (or any compromised core account) who lacks the nationnotes/nn_configure permission sends a direct POST to library/custom_template/add_context.php or ajax_code.php, which never re-check the ACL enforced by the UI. The attacker adds, renames, or deletes shared Nation Notes contexts and categories or reassigns templates to other users, corrupting the clinical-note templates clinicians rely on. The GHSA advisory documents a working reproduction (an add_context.php POST returning HTTP 200 and persisting an unauthorized context), and because CSRF tokens are also absent, the same mutation can be driven via a cross-site request through any logged-in user's browser. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
OpenEMR before 8.5.0 enforces the nationnotes/nn_configure permission only in its Nation Notes user interface, not in the underlying PHP mutation handlers, so any authenticated core/staff account - including one deliberately denied configuration rights - can add, rename, delete or reassign practice-wide clinical-note templates and shared contexts by POSTing directly to library/custom_template/ajax_code.php or library/custom_template/add_context.php. Those same endpoints also omit CSRF validation, so the mutations can additionally be triggered cross-site against a logged-in clinician's browser. Impact is limited to integrity of shared documentation templates with no confidentiality or availability loss, exploitation requires a valid session and a deployment with Nation Notes enabled, and no confirmed in-the-wild exploitation or working exploit code has been reported; the priority rating is this_month, and the GitHub security advisory includes reproduction steps using a sample HTTP request.
RemediationAI
Upgrade OpenEMR to 8.5.0 or later, the version in which the vendor fixed this issue; the upstream recommendation is to require nationnotes/nn_configure at the start of every shared Nation Notes mutation handler, add CSRF validation, and separate personal template association from shared administration with an ownership check on user-scoped operations. Full details are in the GitHub advisory at https://github.com/openemr/openemr/security/advisories/GHSA-m4cw-vx96-p6fj. Until the upgrade is deployed, restrict access to library/custom_template/ajax_code.php and library/custom_template/add_context.php at the web server or reverse proxy so that only accounts permitted to configure Nation Notes can reach them - the trade-off is that legitimate template administration from other paths breaks and, because these handlers also lack CSRF tokens, proxy-level filtering does not by itself stop a permitted user from being induced to submit a cross-site request. If Nation Notes is not in active clinical use, disabling the module removes the exposure entirely at the cost of losing shared note templates. Note that deploying the vendor's handler-level ACL and CSRF checks is the only complete fix; the access-control workarounds above are partial.
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. Nation Notes is its reusable clinical-note templating subsystem, organized into shared contexts, categories and items, with assignments deciding which users receive which templates. Configuration of that subsystem is meant to be reserved for holders of the ACL rule nationnotes/nn_configure, which is checked with AclMain::aclCheckCore('nationnotes','nn_configure') in personalize.php (around lines 333-350) purely to decide whether the Delete Category, Add Category and Add Context controls are rendered. The mutation paths do not repeat the check: ajax_code.php initializes request input and performs template-to-user assignment, item add/update, category listing and recursive category deletion, only consulting nn_configure when rendering edit/delete/add controls (lines 166-181), while add_context.php creates, renames or deletes global contexts straight from request parameters. Neither file validates a CSRF token, which upgrades a straightforward CWE-862/CWE-284 missing-authorization flaw into a cross-site request vector as well. The defect was confirmed on v8.4.1 with an account holding no ACL rules and no CSRF token, and commit-history analysis places the affected range at v4.1.0 through v8.4.1, consistent with the EUVD range of 0 to <8.5.0. The trigger is a direct request to those endpoints; no memory-safety, race or parsing weakness is involved, and the assessed CVSS:3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N) reflects a low-privileged, integrity-only impact confined to the affected feature.
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:L/VA:N/SC:N/SI:N/SA:N
Any authenticated low-privilege account (PR:L) can reach the endpoints over the network with no interaction (AV:N/AC:L/UI:N); impact is limited to template integrity, so C:N/I:L/A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenEMR before 8.5.0 contains a missing authorization vulnerability that allows authenticated users lacking nationnotes/nn_configure to modify shared Nation Notes templates by calling mutation endpoints directly. Attackers can send requests to ajax_code.php or add_context.php, which lack ACL and CSRF checks, to tamper with clinical-note templates and assignments.
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-124986
GHSA-pfp7-6f7h-5c65
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB