---
title: "CVE-2026-41258: OpenMRS has Stored Velocity SSTI to RCE via ConceptReferenceRange"
url: https://erroneo.us/security/cve/CVE-2026-41258/
description: "CVE-2026-41258 (org.openmrs.api:openmrs-api (Maven)): OpenMRS is an open source electronic medical record system platform. From 2.7.0 to before 2.7.9 and…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-05-15
date_modified: 2026-05-15
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-41258"
kev: false
cvss: 9.1
epss: 0.0054
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-41258: OpenMRS has Stored Velocity SSTI to RCE via ConceptReferenceRange

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 0.5% , percentile 45: FIRST’s model estimates a 0.5% chance of exploitation activity in the next 30 days, higher than 45% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Needs an account (high (admin)). Exposure depends on who can log in.
- Only applies if your dependency tree includes org.openmrs.api:openmrs-api (Maven) >= 2.7.0, < 2.7.9, fixed in 2.7.9 ; org.openmrs.api:openmrs-api (Maven) >= 2.8.0, < 2.8.6, fixed in 2.8.6 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Maven `org.openmrs.api:openmrs-api` >= 2.7.0, < 2.7.9 → fixed: 2.7.9
- Maven `org.openmrs.api:openmrs-api` >= 2.8.0, < 2.8.6 → fixed: 2.8.6

## Affected products (CVE record)

- openmrs openmrs-core: >= 2.7.0 < 2.7.9, >= 2.8.0 < 2.8.6

## Severity

- GitHub_M CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.54% probability of exploitation activity in the next 30 days; percentile 45.

## Sources

- [GitHub Advisory GHSA-xj4f-8jjg-vx4q](https://github.com/advisories/GHSA-xj4f-8jjg-vx4q)
- [CVE.org record CVE-2026-41258](https://www.cve.org/CVERecord?id=CVE-2026-41258)
- [NVD entry CVE-2026-41258](https://nvd.nist.gov/vuln/detail/CVE-2026-41258)
- [github.com](https://github.com/openmrs/openmrs-core/security/advisories/GHSA-xj4f-8jjg-vx4q)
- [github.com](https://github.com/openmrs/openmrs-core/commit/8d1c193)
- [machinespirits.com](https://www.machinespirits.com/advisory/1e8430)

---
Source page: https://erroneo.us/security/cve/CVE-2026-41258/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
