CVE-2026-103939
Awaiting Analysis Awaiting Analysis - Queue

OpenEMR ACL Bypass in Weno Module Leading to Pharmacy Table Truncation

Vulnerability report for CVE-2026-103939, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-05

Last updated on: 2026-11-05

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-05
Last Modified
2026-11-05
Generated
2026-11-08
AI Q&A
2026-11-06
EPSS Evaluated
2026-11-06
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
openemr openemr < 8.3.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-862 The product does not perform an authorization check when an actor attempts to access a resource or perform an action.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects OpenEMR versions before 8.3.0 in the Weno e-prescribing module. The file_download.php script lacks ACL and CSRF checks, allowing any authenticated user to truncate the weno_pharmacy table via PharmacyService::removeWenoPharmacies(). This executes a TRUNCATE TABLE command, wiping all pharmacy data. The issue is CSRF-triggerable, meaning attackers can exploit it through a victim's session without direct interaction.

Detection Guidance

Check OpenEMR version with: grep -r "version" /var/www/html/openemr/library/CommonFunctions.php. If version is below 8.3.0, the system is vulnerable. Inspect file_download.php in the Weno module for missing ACL or CSRF checks. Look for unauthorized TRUNCATE TABLE weno_pharmacy queries in database logs.

Impact Analysis

An attacker could exploit this to permanently delete all pharmacy lookup data if Weno isn't configured, or temporarily disable it during a truncate-then-refetch process. This disrupts e-prescribing functionality and may require manual restoration of pharmacy data.

Compliance Impact

This vulnerability could impact compliance with HIPAA by allowing unauthorized users to delete critical pharmacy data, potentially compromising the integrity and availability of electronic health records. GDPR compliance may also be affected if patient data is indirectly exposed or mishandled due to the loss of pharmacy lookup functionality.

Mitigation Strategies

Upgrade OpenEMR to version 8.3.0 or later immediately. Apply the patch from the official repository if upgrading is not feasible. Ensure CSRF tokens and ACL checks are enforced in file_download.php. Monitor database logs for suspicious TRUNCATE operations on weno_pharmacy.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-103939. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...