OpenEMR through 8.2.0 contains an authenticated SQL injection vulnerability in the backup configuration import feature that allows administrators with admin or super ACL privileges to execute arbitrary DDL and DML statements against the application database by uploading a crafted SQL file at the form_step=202 parameter in backup.php. Attackers can exploit the unfiltered shell_exec invocation of the mysql command-line client to extract credential hashes, modify access control tables, inject backdoor accounts, create persistent triggers or stored procedures, and write arbitrary files to the filesystem where MySQL FILE privileges and permissive secure_file_priv settings are configured.
References
| Link | Resource |
|---|---|
| https://jivasecurity.com/writeups/openemr-backup-import-arbitrary-sql-cve-2026-39931 | Exploit Third Party Advisory |
| https://www.vulncheck.com/advisories/openemr-authenticated-sql-injection-via-backup-php-import-feature | Exploit Third Party Advisory |
Configurations
History
No history.
Information
Published : 2026-08-03 17:16
Updated : 2026-09-01 15:37
NVD link : CVE-2026-39931
Mitre link : CVE-2026-39931
CVE.ORG link : CVE-2026-39931
JSON object : View
Products Affected
open-emr
- openemr
CWE
CWE-434
Unrestricted Upload of File with Dangerous Type
