SQL injection in OpenEMR - CVE-2026-39931
Published: August 18, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary SQL statements against the application database.
The vulnerability exists due to improper neutralization of special elements used in an SQL command in the backup import feature in /interface/main/backup.php when processing an uploaded SQL backup file. A remote privileged user can upload a specially crafted SQL file to execute arbitrary SQL statements against the application database.
Exploitation requires access to the backup/restore interface, and the request must include form_step=202 while omitting form_import.