# CVE-2026-24908: OpenEMR has SQL Injection in Patient API Sort Parameter

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/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.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-25T18:14:03.504Z
- Modified: 2026-06-17T10:23:47.513Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

OpenEMR is a free and open source electronic health records and medical practice management application. Prior to version 8.0.0, an SQL injection vulnerability in the Patient REST API endpoint allows authenticated users with API access to execute arbitrary SQL queries through the `_sort` parameter. This could potentially lead to database access, PHI (Protected Health Information) exposure, and credential compromise. The issue occurs when user-supplied sort field names are used in ORDER BY clauses without proper validation or identifier escaping. Version 8.0.0 fixes the issue.

(As written by CVE List.)

## Affected

- openemr openemr: < 8.0.0
- open-emr openemr: before 8.0.0

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/openemr/openemr/security/advisories/GHSA-rcc2-45v3-qmqm> (exploit, vendor-advisory)
- <https://github.com/openemr/openemr/commit/943e23cad6e979f87cdf168807fce2a7b32dd194> (patch)

## Sources

- CVE List: [CVE-2026-24908](https://www.cve.org/CVERecord?id=CVE-2026-24908), CVE Terms of Use, modified 2026-02-26
- NVD: [CVE-2026-24908](https://nvd.nist.gov/vuln/detail/CVE-2026-24908), Public domain, modified 2026-06-17

---

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