8.6high
OpenEMR Authenticated SQL Injection via backup.php Import Feature
- Severity
- 8.6high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.43% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| openemr openemr | up to 8.2.0 | CVE List |
| open-emr openemr | up to 8.2.0 | NVD |
All scores
| VulnCheck | 8.6high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
References
| https://jivasecurity.com/writeups/openemr-backup-import-arbitrary-sql-cve-2026-39931 | exploit, technical-description, third-party-advisory | |
| https://www.vulncheck.com/advisories/openemr-authenticated-sql-injection-via-backup-php-import-feature | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39931 changed 2026-08-14 | CVE Terms of Use |
| NVD | CVE-2026-39931 changed 2026-09-01 | Public domain |