Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-47817

OpenEMR 5.0.2.1 contains a cross-site scripting vulnerability in user profile parameters that authenticated attackers can chain with a file upload to achieve remote code execution. Attackers can exploit the vulnerability by crafting a malicious payload to download and execute a web shell, enabling remote command execution on the vulnerable OpenEMR instance.

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

Source evidence

CVE-2021-47817

core-osv · Original source

Published 21 Jan 2026, 18:16 UTC

OpenEMR 5.0.2.1 contains a cross-site scripting vulnerability in user profile parameters that authenticated attackers can chain with a file upload to achieve remote code execution. Attackers can exploit the vulnerability by crafting a malicious payload to download and execute a web shell, enabling remote command execution on the vulnerable OpenEMR instance.

osv:CVE-2021-47817
Complete source record
{
  "id": "28d92f7984190b98076c264c33ea012062232a4faf70b9eebcae154f180ba197",
  "url": "https://osv.dev/vulnerability/CVE-2021-47817",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-47817",
    "summary": "OpenEMR 5.0.2.1 contains a cross-site scripting vulnerability in user profile parameters that authenticated attackers can chain with a file upload to achieve remote code execution. Attackers can exploit the vulnerability by crafting a malicious payload to download and execute a web shell, enabling remote command execution on the vulnerable OpenEMR instance.",
    "evidence": "osv:CVE-2021-47817",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-47817",
      "aliases": [
        "CVE-2021-47817"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
        }
      ],
      "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-47817.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:29.168794030Z",
      "provider": "osv",
      "references": [
        "https://sourceforge.net/projects/openemr/files/OpenEMR%20Current/5.0.2.1/openemr-5.0.2.tar.gz/download",
        "https://www.open-emr.org/",
        "https://www.vulncheck.com/advisories/openemr-remote-code-execution",
        "https://blog.sonarsource.com/openemr-5-0-2-1-command-injection-vulnerability?utm_medium=cpc&utm_source=twitter&utm_campaign=openemr&utm_term=security&utm_content=tofu",
        "https://www.exploit-db.com/exploits/49784",
        "https://www.youtube.com/watch?v=H8VWNwWgYJo&feature=emb_logo"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-47817",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 432245,
  "published_at": "2026-01-21T18:16:09.633+00:00"
}