CVE-2026-39931
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.
Weakness
- CWE-434: Unrestricted Upload of File with Dangerous Type
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-08-03 |
Timeline
- 2026-08-03Published by the CNA15:54 UTC
- 2026-08-03CISA SSVC decision recordedsame day
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| open-emr openemr | through 8.2.0no fix listed | not listed |
References
- https://jivasecurity.com/writeups/openemr-backup-import-arbitrary-sql-cve-2026-39931
- https://www.vulncheck.com/advisories/openemr-authenticated-sql-injection-via-backup-php-import-feature
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-39931'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-39931'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-39931'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-39931'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).