CVE-2026-39931 OpenEMR Authenticated SQL Injection via backup.php Import Feature
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- PHPMySQL
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| open-emr openemr | <= 8.2.0 | after 8.2.0 | Fixed |
| openemr | <= 8.2.0 | after 8.2.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openemr | <= 8.2.0 | No fix listed |
| open-emr openemr | <= 8.2.0 | No fix listed |
References
- Researcher Disclosure exploit technical-description third-party-advisory
- www.vulncheck.com exploit third-party-advisory
- ENISA EUVD EUVD-2026-52342 third-party-advisory