OpenEMR through 8.2.0 contains an authenticated SQL injection vulnerability in the backup configuration import feature that allows administrators… (CVE-2026-39931)
OpenEMR versions through 8.2.0 contain an authenticated SQL injection vulnerability in the backup configuration import feature. This flaw allows administrators with admin or super ACL privileges to execute arbitrary SQL statements by uploading a crafted SQL file. Exploitation can lead to unauthorized database modifications, extraction of credential hashes, creation of backdoor accounts, and arbitrary file writes if MySQL FILE privileges and permissive secure_file_priv settings are present.
AI Analysis
Technical Summary
The vulnerability (CVE-2026-39931) affects OpenEMR through version 8.2.0 and involves an authenticated SQL injection in the backup configuration import feature. Administrators can exploit this by uploading a malicious SQL file via the form_step=202 parameter in backup.php. The vulnerability arises from unfiltered use of shell_exec to invoke the mysql command-line client, enabling execution of arbitrary DDL and DML statements. Potential impacts include extraction of credential hashes, modification of access control tables, injection of backdoor accounts, creation of persistent triggers or stored procedures, and arbitrary file writes to the filesystem when MySQL FILE privileges and permissive secure_file_priv settings are configured.
Potential Impact
Successful exploitation allows attackers with administrative privileges to execute arbitrary SQL commands, compromising confidentiality, integrity, and availability of the OpenEMR database. This includes stealing credential hashes, altering access controls, injecting persistent backdoors, and writing files to the server filesystem under certain MySQL configurations. The vulnerability has a CVSS score of 7.2 (high severity), indicating significant impact on affected systems.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict administrative access to trusted personnel only and review MySQL FILE privilege and secure_file_priv settings to limit potential damage. Monitor vendor channels for updates and apply official patches once released.
OpenEMR through 8.2.0 contains an authenticated SQL injection vulnerability in the backup configuration import feature that allows administrators… (CVE-2026-39931)
Description
OpenEMR versions through 8.2.0 contain an authenticated SQL injection vulnerability in the backup configuration import feature. This flaw allows administrators with admin or super ACL privileges to execute arbitrary SQL statements by uploading a crafted SQL file. Exploitation can lead to unauthorized database modifications, extraction of credential hashes, creation of backdoor accounts, and arbitrary file writes if MySQL FILE privileges and permissive secure_file_priv settings are present.
CVSS v3.1
Score 7.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CVE-2026-39931) affects OpenEMR through version 8.2.0 and involves an authenticated SQL injection in the backup configuration import feature. Administrators can exploit this by uploading a malicious SQL file via the form_step=202 parameter in backup.php. The vulnerability arises from unfiltered use of shell_exec to invoke the mysql command-line client, enabling execution of arbitrary DDL and DML statements. Potential impacts include extraction of credential hashes, modification of access control tables, injection of backdoor accounts, creation of persistent triggers or stored procedures, and arbitrary file writes to the filesystem when MySQL FILE privileges and permissive secure_file_priv settings are configured.
Potential Impact
Successful exploitation allows attackers with administrative privileges to execute arbitrary SQL commands, compromising confidentiality, integrity, and availability of the OpenEMR database. This includes stealing credential hashes, altering access controls, injecting persistent backdoors, and writing files to the server filesystem under certain MySQL configurations. The vulnerability has a CVSS score of 7.2 (high severity), indicating significant impact on affected systems.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict administrative access to trusted personnel only and review MySQL FILE privilege and secure_file_priv settings to limit potential damage. Monitor vendor channels for updates and apply official patches once released.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-v687-rxcc-g864
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-39931"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a710655bf32cb7a34393462
Added to database: 08/03/2026, 21:21:25 UTC
Last enriched: 08/03/2026, 21:25:57 UTC
Last updated: 08/03/2026, 23:58:00 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.