Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as any low-privilege user (or target logged-in victim)
-
DeliverySend GET to file_download.php with daily omitted
-
ExploitMissing ACL/CSRF check passes request
-
ExecutionremoveWenoPharmacies() runs TRUNCATE TABLE weno_pharmacy
-
ImpactPharmacy directory emptied, e-prescribing lookup unavailable
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 | Requires the Weno eRx module to be installed and enabled - globals.php denies scripts under a disabled custom module, so the endpoint is unreachable on default installs without Weno, and the module's log/pharmacy tables must exist (provided by its normal install). Given that precondition, the direct path needs only any authenticated OpenEMR session, even one in an ACL group with no Weno permission, issuing a GET to scripts/file_download.php with the daily parameter omitted or set to 'N'. The CSRF path removes even the attacker-authentication requirement, needing instead a logged-in victim (including an admin) to load attacker-controlled content that fires the token-less GET. Limiting factors: the Weno module must be active, the victim/attacker must hold a valid session, and impact is confined to the weno_pharmacy lookup table (recoverable by a successful refetch when Weno is configured and reachable; persistent only when refetch fails). |
| Impact | This is a genuine but moderate-severity integrity/availability issue, not a high-impact emergency. The vendor CVSS of 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L) is consistent with the mechanism: a network-reachable, low-complexity, low-privilege action that destroys data (TRUNCATE of weno_pharmacy) with no confidentiality exposure and only partial integrity/availability impact. The vuln.today decision label is 'this_month' (not act_now/emergency), aligning with the medium severity. No EPSS score and no CISA KEV entry are present in the input, so there is no signal of active exploitation - treat exploitation status as 'no public exploit identified as weaponized code' while noting a detailed, reproduction-verified PoC does exist in the GHSA advisory (demonstrated on master at commit 1d39d67). The PR:L in the vector marks this as authenticated: direct exploitation requires any logged-in OpenEMR user, while the CSRF path only needs a logged-in victim (including an admin) to visit attacker content. A key limiting condition the raw CVSS does not capture is that exploitation requires the Weno eRx module to be installed and enabled - globals.php denies scripts under a disabled custom module. Net: a real, worth-patching access-control/CSRF defect with low blast radius (a single lookup table that can usually be refetched), prioritized appropriately as a monthly-cadence fix rather than a drop-everything item. |
| Exploit ScenarioDerived | On an OpenEMR install with the Weno eRx module enabled, a low-privilege authenticated user (no Weno permission) sends a single GET to file_download.php with the daily parameter omitted; the script runs removeWenoPharmacies() → TRUNCATE TABLE weno_pharmacy before the download step, wiping the e-prescribing pharmacy directory. Alternatively, because the endpoint is a token-less GET with no CSRF check, an attacker lures a logged-in victim (potentially an admin) to a page that auto-fires the request, truncating the table through the victim's session. A reproduction-verified PoC exists in the GHSA advisory (3 rows → 0 rows, HTTP 500 from the later failing step), though it is not packaged as a standalone weaponized exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 05, 2026
Missing authorization and CSRF protection in OpenEMR's Weno e-prescribing module (interface/modules/custom_modules/oe-module-weno/scripts/file_download.php) lets any authenticated user - or, via a cross-site request, any logged-in victim including an administrator - wipe the e-prescribing pharmacy directory by issuing a GET that reaches PharmacyService::removeWenoPharmacies() and its TRUNCATE TABLE weno_pharmacy statement. Only deployments running OpenEMR before 8.3.0 with the Weno eRx module installed and enabled are reachable; the endpoint is blocked by globals.php when the module is disabled, and the module's tables must exist. Impact is limited to integrity and availability of the weno_pharmacy lookup table (CVSS 5.4, PR:L), which can stay empty and unavailable if the subsequent refetch fails; the vendor advisory includes verified proof-of-concept reproduction steps, but there is no confirmed active exploitation or CISA KEV listing, and this is a moderate-severity integrity/availability issue rather than a high-impact emergency.
RemediationAI
Upgrade to OpenEMR 8.3.0, which contains the upstream fix (PR 13197, commit f760adc7bddaf9d118e1a0d40590e686783ed21b): file_download.php now requires AclMain::aclCheckCore('admin', 'super'), enforces CsrfUtils::checkCsrfInput() on the GET request, and the calling download_log_viewer.php template passes a csrf_token_form parameter. Where upgrading immediately is not possible, the actionable compensating control is to disable the Weno e-prescribing module, which makes globals.php refuse requests to scripts under the custom module and removes the reachable truncate path - the trade-off is loss of Weno e-prescribing and pharmacy-directory functionality for all users, and any already-truncated weno_pharmacy table must be repopulated by a successful refetch once Weno is configured and reachable. Additionally, restrict network access to the /interface/modules/custom_modules/oe-module-weno/scripts/ path (for example at the reverse proxy) so only trusted administrative source addresses can reach it, accepting that legitimate administrative download-log workflows must originate from those addresses. A successful refetch restores the directory; when Weno is unconfigured or unreachable the loss is persistent, so verify weno_pharmacy is repopulated after any suspected trigger. Advisory and release notes: https://github.com/openemr/openemr/security/advisories/GHSA-xhv3-qr55-56h3 and https://github.com/openemr/openemr/releases/tag/v8_3_0.
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 flaw is a CWE-862 missing authorization defect compounded by a CWE-352 cross-site request forgery exposure in OpenEMR's PHP-based custom module framework. file_download.php loads globals.php, which enforces only a session/login check - and a global module-on/off gate for scripts under custom modules - then calls WenoValidate::validateAdminCredentials(). Despite its name, that method only verifies or resets the stored Weno encryption key; it performs no AclMain::aclCheckCore() ACL evaluation, and its return value is discarded. No CsrfUtils token is validated anywhere in the file. On the default GET path (daily omitted or set to 'N'), the script invokes PharmacyService::removeWenoPharmacies(), which executes TRUNCATE TABLE weno_pharmacy - and this truncate commits before the later outbound pharmacy download runs, so a failed download leaves the live directory empty. Sibling scripts in the same module (weno_pharmacy_search.php and update_pharmacy.php gate on patients/rx plus CSRF, weno_setup.php on admin/super) show the intended control was simply omitted here. The trigger is a plain token-less GET; no special request structure or timing condition is described in the sources beyond the module-enabled precondition.
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:L/UI:N/S:U/C:N/I:L/A:L
Network-reachable GET (AV:N), no special complexity once the module is enabled (AC:L), any authenticated user suffices (PR:L); no data disclosure (C:N) but table truncation gives partial integrity/availability loss (I:L/A:L).
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, interface/modules/custom_modules/oe-module-weno/scripts/file_download.php has no ACL or CSRF check and ignores the result of validateAdminCredentials(). When the Weno module is enabled, the default GET path calls PharmacyService::removeWenoPharmacies() before attempting a refetch, allowing any authenticated user to truncate the weno_pharmacy table and allowing a cross-site request to trigger the same operation through a logged-in victim. A failed later download can leave the e-prescribing pharmacy directory empty and unavailable. 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
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-117774
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB