CVE-2026-41258

Source
https://cve.org/CVERecord?id=CVE-2026-41258
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41258.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-41258
Aliases
Published
2026-05-15T16:13:18.131Z
Modified
2026-07-15T01:49:21.619764189Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
OpenMRS: Stored Velocity SSTI to RCE via ConceptReferenceRange
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41258.json",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": ">= 2.7.0 < 2.7.9"
                },
                {
                    "last_affected": ">= 2.7.0 < 2.7.9"
                },
                {
                    "introduced": ">= 2.8.0 < 2.8.6"
                },
                {
                    "last_affected": ">= 2.8.0 < 2.8.6"
                }
            ]
        }
    ],
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-94"
    ]
}
References

Affected packages

Git / github.com/openmrs/openmrs-core

Affected ranges

Type
GIT
Repo
https://github.com/openmrs/openmrs-core
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": "DESCRIPTION",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.7.9"
        }
    ]
}

Affected versions

1.*
1.1.0
1.2.0
1.2.01
1.2.01-RC1
1.3.0-RC1
1.3.0-RC2
1.3.0-RC3
1.3.0-RC4
2.*
2.2.0-20181112.082045-243
2.4.0-alpha
2.7.0
2.7.0-alpha
2.7.0-beta
2.7.1
2.7.2
2.7.4
2.7.5
2.7.7
2.7.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41258.json"