{"id":"CVE-2021-47817","aliases":["CVE-2021-47817"],"related":[],"kind":"vulnerability","state":"published","title":"OpenEMR 5.0.2.1 - Remote Code Execution","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"OpenEMR 5.0.2.1 contiene una vulnerabilidad de cross-site scripting que permite a atacantes autenticados inyectar JavaScript malicioso a través de los parámetros del perfil de usuario. Los atacantes pueden explotar la vulnerabilidad creando una carga útil maliciosa para descargar y ejecutar una web shell, lo que permite la ejecución remota de comandos en la instancia vulnerable de OpenEMR.","source":"nvd"}],"published":"2026-01-21T17:27:33.562Z","modified":"2026-06-17T04:18:33.060Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"5.0.2.1","status":"affected"}],"vendor":"OpenEMR Foundation, Inc.","product":"OpenEMR","source":"cvelist"},{"ranges":[{"status":"affected","version":"5.0.2.1"}],"vendor":"open-emr","product":"openemr","cpe":"cpe:2.3:a:open-emr:openemr:5.0.2.1:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.exploit-db.com/exploits/49784","tags":["exploit","third-party-advisory","vdb-entry"],"sources":["cvelist","nvd"]},{"url":"https://www.open-emr.org/","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://sourceforge.net/projects/openemr/files/OpenEMR%20Current/5.0.2.1/openemr-5.0.2.tar.gz/download","tags":["product"],"sources":["cvelist","nvd"]},{"url":"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","tags":["exploit","patch","third-party-advisory","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.youtube.com/watch?v=H8VWNwWgYJo&feature=emb_logo","tags":["exploit","technical-description"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/openemr-remote-code-execution","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Hato0, BvThTrd"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-01-22T22:10:00.083Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47817","url":"https://www.cve.org/CVERecord?id=CVE-2021-47817","licence":"CVE Terms of Use","modified":"2026-05-25T23:41:14.666Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47817","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47817","licence":"Public domain","modified":"2026-06-17T04:18:33.060Z"}],"updatedAt":"2026-11-25T22:58:09.071Z","epss":{"score":0.02375,"percentile":0.84323,"date":"2026-12-01T12:00:22.000Z"}}