Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-32102

A SQL injection vulnerability exists (with user privileges) in library/custom_template/ajax_code.php in OpenEMR 5.0.2.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-32102
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:16 UTC · Revision 1

Source evidence

CVE-2021-32102

core-osv · Original source

Published 7 May 2021, 04:15 UTC

A SQL injection vulnerability exists (with user privileges) in library/custom_template/ajax_code.php in OpenEMR 5.0.2.1.

osv:CVE-2021-32102
Complete source record
{
  "id": "266dd6059e685427da150c1a8eaa4b8e43ebb814f6232ca8cc9bd56b20b74343",
  "url": "https://osv.dev/vulnerability/CVE-2021-32102",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-32102",
    "summary": "A SQL injection vulnerability exists (with user privileges) in library/custom_template/ajax_code.php in OpenEMR 5.0.2.1.",
    "evidence": "osv:CVE-2021-32102",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-32102",
      "aliases": [
        "CVE-2021-32102"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/openemr/openemr",
              "type": "GIT",
              "events": [
                {
                  "introduced": "728f4bdd4f8c729944c5544589f81374cec7c4f4"
                },
                {
                  "last_affected": "728f4bdd4f8c729944c5544589f81374cec7c4f4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:open-emr:openemr:5.0.2.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.0.2.1"
                      },
                      {
                        "last_affected": "5.0.2.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.0.2.1",
            "v5_0_2_1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32102.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:16.301294925Z",
      "provider": "osv",
      "references": [
        "https://blog.sonarsource.com/openemr-5-0-2-1-command-injection-vulnerability",
        "https://community.open-emr.org/t/openemr-5-0-2-patch-5-has-been-released/15431",
        "https://community.sonarsource.com/t/openemr-5-0-2-1-command-injection-vulnerability-puts-health-records-at-risk/33592",
        "https://portswigger.net/daily-swig/healthcare-security-openemr-fixes-serious-flaws-that-lead-to-command-execution-in-patient-portal",
        "https://www.open-emr.org/wiki/index.php/Old_Outdated_OpenEMR_Patches"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-32102",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 429327,
  "published_at": "2021-05-07T04:15:07.427+00:00"
}