Skip to main content
VulnerabilityPublished

CVE-2026-41258: openmrs-core · Code Injection

Affects openmrs-coreSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 9.1 Critical : upgrade to 2.8.6 or 2.7.9 as a priority.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 24% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.8.6, 2.7.9
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade openmrs-core and openmrs/openmrs-core to 2.8.6 or 2.7.9.

Affected software

ProductAffectedFixed in
openmrsopenmrs-coreAffected
  • >=2.8.0 <2.8.6
Fixed in
  • 2.8.6
openmrsopenmrs-coreAffected
  • >=2.7.0 <2.7.9
Fixed in
  • 2.7.9
GitHubopenmrs/openmrs-corepkg:github/openmrs/openmrs-coreOther threatsAffected
  • >=2.7.0 <2.7.9
  • >=2.8.0 <2.8.6
Fixed in
  • 2.7.9
  • 2.8.6

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

This vulnerability is fixed in OpenMRS Core versions 2.7.9 and 2.8.6. Users should upgrade to these or later versions to remediate the issue. Until upgraded, restrict Manage Concepts privilege to trusted users only to reduce risk. Patch status is not explicitly stated beyond the fixed versions; check the official OpenMRS advisories for the latest remediation guidance.

Description

OpenMRS is an open source electronic medical record system platform. From 2.7.0 to before 2.7.9 and 2.8.6, the ConceptReferenceRangeUtility.evaluateCriteria() method in OpenMRS Core evaluates database-stored criteria strings as Apache Velocity templates without any sandbox configuration. The VelocityEngine is initialized with only logging properties and noSecureUberspector, leaving the default UberspectImpl in place, which allows unrestricted Java reflection through template expressions. A user with the Manage Concepts privilege can store a malicious Velocity template expression in a concept's reference range criteria field. This payload is then executed automatically whenever a user or API call validates an observation against the affected concept. The Velocity context exposes $patient (the Person / Patient object), $obs (the Obs object), and $fn (the ConceptReferenceRangeUtility instance with access to the full OpenMRS service layer). This vulnerability is fixed in 2.7.9 and 2.8.6.

References

Community reviews

Loading reviews…