SecurityContext

CVE-2021-32102: OpenEMR - SQL Injection

  • Cve: CVE-2021-32102
  • Name: OpenEMR - SQL Injection
  • Description: A SQL injection vulnerability exists (with user privileges) in library/custom_template/ajax_code.php in OpenEMR 5.0.2.1.
  • Impact: Attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or deletion.
  • Remediation: Update to the latest version of OpenEMR or apply security patches addressing this vulnerability.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: logged_in
  • Requirements: Attacker needs user privileges
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01176
  • Epss percentile: 0.68225
  • Assignee: [email protected]
  • Published at: 2021-05-07T04:15:07Z
  • Age in days: 2027
  • Modified at: 2026-06-17T03:52:47Z
  • Patch available: yes
  • References total: 5
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32102
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

References

Same in every row:

  • Source: nvd
UrlTags
https://www.open-emr.org/wiki/index.php/Old_Outdated_OpenEMR_PatchesPatch, Vendor Advisory
https://community.open-emr.org/t/openemr-5-0-2-patch-5-has-been-released/15431Vendor Advisory
https://blog.sonarsource.com/openemr-5-0-2-1-command-injection-vulnerabilityThird Party Advisory
https://community.sonarsource.com/t/openemr-5-0-2-1-command-injection-vulnerability-puts-health-records-at-risk/33592Third Party Advisory
https://portswigger.net/daily-swig/healthcare-security-openemr-fixes-serious-flaws-that-lead-to-command-execution-in-patient-portalThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
open-emr:openemr= 5.0.2.1nonvd/v1/products/open-emr/openemr

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 2328
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports