Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

OpenEMR through 8.2.0 contains an authenticated SQL injection vulnerability in the backup configuration import feature that allows administrators… (CVE-2026-39931)

0
High
Published: 08/03/2026 (08/03/2026, 18:30:48 UTC)
Source: GCVE Database

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
openemr/openemr
pkg:github/openemr/openemr
Affected versions
<=8.2.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/03/2026, 21:25:57 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses