{"cve":"CVE-2026-41258","nvd":{"published":"2026-05-15T17:16:46.463","modified":"2026-10-26T14:10:00.130","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1},"cwes":["CWE-94"],"references":["https://github.com/openmrs/openmrs-core/security/advisories/GHSA-xj4f-8jjg-vx4q"],"products":[],"source":"nvd","synced_at":"2026-10-26T14:27:29.784594657+00:00"},"epss":{"cve":"CVE-2026-41258","score":0.00317,"percentile":0.2441,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-xj4f-8jjg-vx4q","url":"https://osv.dev/vulnerability/GHSA-xj4f-8jjg-vx4q","summary":"OpenMRS has Stored Velocity SSTI to RCE via ConceptReferenceRange","modified":"2026-05-16T00:10:46.998566Z","packages":[{"ecosystem":"Maven","name":"org.openmrs.api:openmrs-api","purl":"pkg:maven/org.openmrs.api/openmrs-api","ranges":[">=2.7.0 <2.7.9"],"fixed":["2.7.9"]},{"ecosystem":"Maven","name":"org.openmrs.api:openmrs-api","purl":"pkg:maven/org.openmrs.api/openmrs-api","ranges":[">=2.8.0 <2.8.6"],"fixed":["2.8.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}