# CVE-2026-39931: OpenEMR Authenticated SQL Injection via backup.php Import Feature

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-08-03T15:54:13.682Z
- Modified: 2026-09-01T15:37:05.750Z
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- openemr openemr: up to 8.2.0
- open-emr openemr: up to 8.2.0

## Every score

- VulnCheck: CVSS:4.0 8.6 High `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: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## 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

- CVE List: [CVE-2026-39931](https://www.cve.org/CVERecord?id=CVE-2026-39931), CVE Terms of Use, modified 2026-08-14
- NVD: [CVE-2026-39931](https://nvd.nist.gov/vuln/detail/CVE-2026-39931), Public domain, modified 2026-09-01

---

Page: https://cve.day/CVE-2026-39931 · Whole record: https://cve.day/CVE-2026-39931.json · Rebuilt by cve.day 2026-11-25T22:59:30.880Z
