Unrestricted Java Reflection Vulnerability in OpenMRS Electronic Medical Record System
CVE-2026-41258
9.1CRITICAL
What is CVE-2026-41258?
OpenMRS, an open-source electronic medical record system, contains a vulnerability that allows users with the Manage Concepts privilege to execute arbitrary code. This occurs through the ConceptReferenceRangeUtility.evaluateCriteria() method, which evaluates database-stored criteria as Apache Velocity templates without any sandbox restrictions. Malicious expressions can be injected into the concept's reference range criteria field. Upon validation of an observation involving the affected concept, these expressions execute, potentially compromising patient data and system integrity. The vulnerability is remediated in versions 2.7.9 and 2.8.6.
Affected Version(s)
openmrs-core >= 2.7.0 < 2.7.9 < 2.7.0 2.7.9
openmrs-core >= 2.8.0 < 2.8.6 < 2.8.0 2.8.6
