Dolibarr before 24.0.0 contains a SQL injection in its CSV and XLSX import wizard. (CVE-2026-81728)
Description
Dolibarr versions before 24.0.0 contain a SQL injection vulnerability in the CSV and XLSX import wizard. The vulnerability arises because the import wizard reads update keys with insufficient filtering, allowing SQL keywords and special characters to remain intact. This enables an attacker with import permissions to craft malicious input that manipulates SQL queries, potentially exfiltrating data and modifying arbitrary rows in the database. The issue is fixed by adding an allow-list check in version 24.0.0.
CVSS v3.1
Score 8.1high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The SQL injection in Dolibarr before 24.0.0 occurs in the CSV and XLSX import wizard. The import process reads update keys using GETPOST('updatekeys', 'array') with only a generic alphanohtml filter that removes HTML but leaves SQL syntax elements intact. The import_insert() function builds a SQL WHERE clause from these keys without proper validation against a fixed list of legitimate column codes. This allows an attacker with import permissions to inject UNION SELECT statements that can exfiltrate arbitrary table content and control which database rows are updated. The vulnerability is addressed in Dolibarr 24.0.0 by adding an allow-list validation for submitted values.
Potential Impact
An attacker with import permissions can exploit this vulnerability to perform SQL injection attacks, leading to unauthorized data disclosure and modification of arbitrary database rows. The vulnerability has a high severity score (CVSS 8.1) with impacts on confidentiality and integrity but no impact on availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
A fix is available in Dolibarr version 24.0.0, which adds an allow-list check to validate submitted update keys in the import wizard. Users should upgrade to version 24.0.0 or later to remediate this vulnerability. Until upgraded, restrict import permissions to trusted users only.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-j8xc-7c27-7wj4
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-81728"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a91a858acd9273b490696ba
Added to database: 08/28/2026, 15:25:12 UTC
Last enriched: 09/08/2026, 05:37:49 UTC
Last updated: 10/10/2026, 18:48:23 UTC
Views: 25
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.