CVE-2026-103939

OpenEMR: Weno `file_download.php`: missing ACL/CSRF truncates the e-prescribing pharmacy directory

Published Nov 5, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability occurs in the file_download.php script of the Weno module where no access control or CSRF verification is performed. Any authenticated user can invoke a request that calls PharmacyService::removeWenoPharmacies(), which truncates the weno_pharmacy database table. The result is an empty e‑prescribing pharmacy directory, effectively disabling delivery of prescriptions and causing data loss. Cross‑site requests from a logged‑in victim can also trigger the same operation, potentially affecting multiple users if the attacker can lure victims to a malicious site.

Affected Systems

This flaw exists in OpenEMR deployments prior to version 8.3.0 that have the Weno module enabled. The affected code is located under interface/modules/custom_modules/oe-module-weno/scripts/file_download.php. Only installations that include the Weno module and grant users authentication are at risk.

Risk and Exploitability

The CVSS score is 5.4, indicating a moderate severity. No EPSS score is published, and the vulnerability is not listed in CISA’s KEV catalog, suggesting no widespread exploitation so far. Attackers would need authenticated access or the ability to forge a request from a logged‑in user. The absence of authorization checks makes the flaw straightforward to exploit once authentication is obtained, though it does not allow arbitrary code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenEMR to version 8.3.0 or later where the issue is fixed
  • If the upgrade cannot be performed immediately, disable or uninstall the Weno module until a patched version is available
  • Restrict access to the file_download.php endpoint by applying proper ACL checks so that only authorized administrative users can execute the deletion operation
  • Implement monitoring for sudden deletions of pharmacy records and alert security staff

Generated by OpenCVE AI on November 5, 2026 at 21:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Open-emr
Open-emr openemr
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description 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.
Title OpenEMR: Weno `file_download.php`: missing ACL/CSRF truncates the e-prescribing pharmacy directory
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 5, 2026, 9:04 PM
Reserved
Oct 1, 2026, 2:20 PM
Status
Analyzed
Published
Nov 5, 2026, 8:17 PM
Modified
Nov 10, 2026, 7:15 PM