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

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-02)
- Published: 2026-05-04T19:31:22.000Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: GHSA-xj4f-8jjg-vx4q
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- openmrs openmrs-core: >= 2.7.0 < 2.7.9; >= 2.8.0 < 2.8.6
- org.openmrs.api:openmrs-api (Maven): from 2.7.0 before 2.7.9; from 2.8.0 before 2.8.6

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `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 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/openmrs/openmrs-core/security/advisories/GHSA-xj4f-8jjg-vx4q> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41258> (advisory)
- <https://github.com/openmrs/openmrs-core/commit/8d1c193> (web)
- <https://github.com/openmrs/openmrs-core> (package)
- <https://www.machinespirits.com/advisory/1e8430> (web)

## Sources

- CVE List: [CVE-2026-41258](https://www.cve.org/CVERecord?id=CVE-2026-41258), CVE Terms of Use, modified 2026-05-15
- GitHub Advisory Database: [GHSA-xj4f-8jjg-vx4q](https://github.com/advisories/GHSA-xj4f-8jjg-vx4q), CC-BY-4.0, modified 2026-05-16
- NVD: [CVE-2026-41258](https://nvd.nist.gov/vuln/detail/CVE-2026-41258), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41258 · Whole record: https://cve.day/CVE-2026-41258.json · Rebuilt by cve.day 2026-11-25T22:59:21.820Z
