CVE-2026-39931 Details
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.
A SQL injection vulnerability has been identified in OpenEMR versions through 8.2.0, specifically within the backup configuration import feature. This vulnerability allows administrators with admin or super ACL privileges to execute arbitrary Data Definition Language (DDL) and Data Manipulation Language (DML) statements against the application database. The issue arises from the unfiltered execution of uploaded SQL files via the 'form_step=202' parameter in 'backup.php'. Exploitation of this vulnerability could lead to the extraction of credential hashes, modification of access control tables, injection of backdoor accounts, creation of persistent triggers or stored procedures, and unauthorized file writes to the filesystem, particularly in environments with permissive MySQL 'secure_file_priv' settings.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://jivasecurity.com/writeups/openemr-backup-import-arbitrary-sql-cve-2026-39931 | [email protected] | ExploitThird Party Advisory |
| https://www.vulncheck.com/advisories/openemr-authenticated-sql-injection-via-backup-php-import-feature | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-434 | Unrestricted Upload of File with Dangerous Type | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| open-emr openemr | <= 8.2.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 1, 2026 | Initial Analysis | [email protected] |
| Aug 3, 2026 | CVE Modified | CISA-ADP |
| Aug 3, 2026 | New CVE Received | [email protected] |