← Terug naar overzicht

Dolibarr versions before 24.0.0 contain a SQL injection vulnerability in the CSV and XLSX import wizard. The vulnerability exists because the update keys submitted via GETPOST are filtered only by a generic alphanohtml filter, which strips HTML but leaves SQL keywords, comment markers, parentheses, spaces, and quotes intact. The import_insert() function builds SQL WHERE clauses directly from user-supplied keys without validating them against an allowed list of legitimate column codes. An attacker can inject a UNION SELECT statement to exfiltrate arbitrary table content and redirect which database row the import overwrites. For category link tables, the raw filter array is spliced directly into UPDATE statements. A user with import permissions can exploit this flaw. The fix, an allow-list validation of submitted keys, was introduced in version 24.0.0; release 23.0.4 does not contain the patch.

Affected products

  • Dolibarr ERP/CRM < 24.0.0

Related CVE's

  • CVE-2026-81728

Categories

  • Database & Storage
  • Enterprise Applications
  • Web Technologies