OpenEMR Authenticated SQL Injection via backup.php Import Feature
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-39931
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 13:12 UTC · Revision 1
Source evidence
OpenEMR Authenticated SQL Injection via backup.php Import Feature
core-osv · Original sourcePublished 3 Aug 2026, 15:54 UTC
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.
osv:CVE-2026-39931
Complete source record
{
"id": "ef844da8b4a7951118341afb8fd9f7c44f92c8110ea0c5ea8478787b3ae3ed2b",
"url": "https://osv.dev/vulnerability/CVE-2026-39931",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "OpenEMR Authenticated SQL Injection via backup.php Import Feature",
"summary": "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.",
"evidence": "osv:CVE-2026-39931",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-39931",
"aliases": [
"CVE-2026-39931"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/openemr/openemr",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "6125a2fd8089c8bcc3848071c1293c60e27a7585"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "8.2.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"cpe": "cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "8.2.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v8_2_0",
"v3_0_1",
"v3_0_0",
"v2_9_0",
"v2_8_3",
"v2_8_2",
"v2_8_1",
"v2_8_0",
"v2_7_3-rc1",
"v2_7_2",
"v2_7_2-rc2",
"v2_7_2-rc1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-39931.json"
}
}
],
"modified": "2026-10-28T02:30:50.626177612Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39931.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-39931",
"https://www.vulncheck.com/advisories/openemr-authenticated-sql-injection-via-backup-php-import-feature",
"https://github.com/openemr/openemr",
"https://jivasecurity.com/writeups/openemr-backup-import-arbitrary-sql-cve-2026-39931"
],
"provider_metadata": {
"cwe_ids": [
"CWE-434"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39931.json"
}
},
"related_cves": [
{
"value": "CVE-2026-39931",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 519410,
"published_at": "2026-08-03T15:54:13.682+00:00"
}