{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:open-emr:openemr:5.0.2.1:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "5.0.2.1"
              },
              {
                "last_affected": "5.0.2.1"
              }
            ],
            "source": "CPE_STRING"
          },
          "events": [
            {
              "introduced": "728f4bdd4f8c729944c5544589f81374cec7c4f4"
            },
            {
              "last_affected": "728f4bdd4f8c729944c5544589f81374cec7c4f4"
            }
          ],
          "repo": "https://github.com/openemr/openemr",
          "type": "GIT"
        }
      ],
      "versions": [
        "5.0.2.1"
      ]
    }
  ],
  "database_specific": {},
  "details": "A SQL injection vulnerability exists (with user privileges) in library/custom_template/ajax_code.php in OpenEMR 5.0.2.1.",
  "id": "CVE-2021-32102",
  "modified": "2026-07-08T05:37:39.259556485Z",
  "published": "2021-05-07T04:15:07.427Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://blog.sonarsource.com/openemr-5-0-2-1-command-injection-vulnerability"
    },
    {
      "type": "ADVISORY",
      "url": "https://community.open-emr.org/t/openemr-5-0-2-patch-5-has-been-released/15431"
    },
    {
      "type": "ADVISORY",
      "url": "https://community.sonarsource.com/t/openemr-5-0-2-1-command-injection-vulnerability-puts-health-records-at-risk/33592"
    },
    {
      "type": "ADVISORY",
      "url": "https://portswigger.net/daily-swig/healthcare-security-openemr-fixes-serious-flaws-that-lead-to-command-execution-in-patient-portal"
    },
    {
      "type": "FIX",
      "url": "https://www.open-emr.org/wiki/index.php/Old_Outdated_OpenEMR_Patches"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}