CVE-2026-81728: Dolibarr SQL injection in CSV/XLSX import wizard

CVE-2026-81728 · Severity: high · CVSS 8.1 · Published 2026-08-27

Dolibarr is an open-source ERP and CRM system used by businesses to manage contacts, invoices, orders, and accounting. This vulnerability allows users with import permissions to inject SQL commands through the CSV/XLSX import feature, potentially exposing sensitive business data from the database or modifying records during import operations.

Technologies: Dolibarr Crm, Dolibarr, Dolibarr Erp\. Vendors: Dolibarr.

Quick answers

Is CVE-2026-81728 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-81728 being exploited in the wild.
How severe is CVE-2026-81728?
High severity, with a CVSS score of 8.1, published 27 August 2026.
Which products and versions are affected?
Dolibarr before 24.0.0.
Is there a fix for CVE-2026-81728?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-81728 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2026-81728?
Check whether you run Dolibarr Crm, Dolibarr or Dolibarr Erp\ at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A SQL injection vulnerability exists in the CSV and XLSX import wizard (htdocs/imports/import.php and htdocs/core/modules/import/import_csv.modules.php). The vulnerability arises because the wizard reads user-supplied update keys via GETPOST('updatekeys', 'array') and applies only a basic HTML strip filter that leaves SQL syntax intact. The import_insert() function then constructs WHERE clauses by concatenating these keys directly into SQL queries without parameterized statements. An attacker can inject UNION SELECT statements to exfiltrate arbitrary table content; the attacker-controlled integer result redirects which rows are updated. The attack requires the import permission but no other authentication bypass. The fix (allowlist validation of column codes) was added in version 24.0.0; versions before 24.0.0, including 23.0.4, are vulnerable.

Affected products

  • Dolibarr Dolibarr before 24.0.0

Timeline

  • 2026-08-27: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.