Home / openmrs / openmrs-core / CVE-2026-41258
CVE-2026-41258: is it exploited, and which versions of openmrs-core are affected and fixed?
CVE-2026-41258 is a code injection (remote code execution) vulnerability in openmrs-core. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: org.openmrs.api:openmrs-api from 2.7.0 before 2.7.9 and org.openmrs.api:openmrs-api from 2.8.0 before 2.8.6 (GitHub advisory GHSA-xj4f-8jjg-vx4q). Fixed in 2.7.9 and 2.8.6 (GitHub advisory GHSA-xj4f-8jjg-vx4q). Severity: Critical (9.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-41258?
OpenMRS: Stored Velocity SSTI to RCE via ConceptReferenceRange
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.
From the CVE record by GitHub_M, last updated May 15, 2026, 16:40 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| openmrs | openmrs-core | >= 2.7.0 < 2.7.9 >= 2.8.0 < 2.8.6 |
As the CVE record by GitHub_M states it, last updated May 15, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.openmrs.api:openmrs-api | >= 2.7.0, < 2.7.9 | 2.7.9 | GHSA-xj4f-8jjg-vx4q |
| Maven | org.openmrs.api:openmrs-api | >= 2.8.0, < 2.8.6 | 2.8.6 | GHSA-xj4f-8jjg-vx4q |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 15, 2026. Summary: OpenMRS has Stored Velocity SSTI to RCE via ConceptReferenceRange.
How severe is CVE-2026-41258?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-41258 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, May 15, 2026)
- EPSS
- 0.32% probability of exploitation activity in the next 30 days, percentile 26.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- https://github.com/openmrs/openmrs-core/security/advisories/GHSA-xj4f-8jjg-vx4q x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- April 18, 2026
- Published
- May 15, 2026, 16:13 UTC
- CVE record updated
- May 15, 2026, 16:40 UTC by GitHub_M
- NVD
- Deferred, last modified October 26, 2026, 14:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect openmrs-core?
- May 6, 2026CVE-2026-40076 openmrs-core: path traversal (reading or writing files outside the intended folder)
- May 5, 2026CVE-2026-40075 openmrs-core: path traversal (reading or writing files outside the intended folder)
- Feb 22, 2022CVE-2022-23612 openmrs-core: path traversal (reading or writing files outside the intended folder)
Questions about CVE-2026-41258
Is CVE-2026-41258 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.32% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of openmrs-core are affected by CVE-2026-41258?
org.openmrs.api:openmrs-api from 2.7.0 before 2.7.9 and org.openmrs.api:openmrs-api from 2.8.0 before 2.8.6, per the GitHub advisory GHSA-xj4f-8jjg-vx4q. The tables above give every range the sources list.
Which version fixes CVE-2026-41258?
2.7.9 and 2.8.6, per the GitHub advisory GHSA-xj4f-8jjg-vx4q. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-41258?
Critical (9.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-41258?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.