Skip to content
Heist/ feed
Back to feed
Critical

OpenEMR has SQL Injection in Patient API Sort Parameter

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-24908
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 15:33 UTC · Revision 1

Source evidence

OpenEMR has SQL Injection in Patient API Sort Parameter

core-osv · Original source

Published 25 Feb 2026, 18:14 UTC

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.

osv:CVE-2026-24908
Complete source record
{
  "id": "a96026a7289978b88c47f85f5e0e1ca3ffc451bedf2223dcca7171acac7cd388",
  "url": "https://osv.dev/vulnerability/CVE-2026-24908",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "OpenEMR has SQL Injection in Patient API Sort Parameter",
    "summary": "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.",
    "evidence": "osv:CVE-2026-24908",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-24908",
      "aliases": [
        "CVE-2026-24908",
        "GHSA-rcc2-45v3-qmqm"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/openemr/openemr",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "b91b73600327acb46252b9fce7d04467eea126fd"
                },
                {
                  "fixed": "943e23cad6e979f87cdf168807fce2a7b32dd194"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "8.0.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "943e23cad6e979f87cdf168807fce2a7b32dd194"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3_0_1",
            "v3_0_0",
            "v2_9_0",
            "v2_8_3",
            "v2_8_2",
            "v2_8_1",
            "v2_8_0",
            "v2_7_3-rc1",
            "v2_7_2",
            "v2_7_2-rc2",
            "v2_7_2-rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-24908.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:36.987113985Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24908.json",
        "https://github.com/openemr/openemr/security/advisories/GHSA-rcc2-45v3-qmqm",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-24908",
        "https://github.com/openemr/openemr/commit/943e23cad6e979f87cdf168807fce2a7b32dd194"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24908.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-24908",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504173,
  "published_at": "2026-02-25T18:14:03.504+00:00"
}