Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid low-privilege API credentials
-
DeliveryCall setup/multicurrencies list endpoint
-
ExploitInject UNION SELECT via sqlfilters parameter
-
ExecutionBypass parenthesis-only validation
-
PersistConcatenate into SQL WHERE clause
-
ImpactExfiltrate password hashes and API keys
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Dolibarr REST API account (CVSS PR:L) with access to the vulnerable list endpoints - the setup dictionary endpoints (regions, incoterms, VAT) in api_setup.class.php and the multicurrencies index in api_multicurrencies.class.php - and the ability to supply the 'sqlfilters' query parameter. The attacker must craft a sqlfilters value whose injected SQL (e.g. an appended UNION SELECT) lies outside the recognized (field:operator:value) triplet pattern while keeping parentheses balanced so it survives the _checkFilters() check. Limiting factors: valid credentials are mandatory (no anonymous exploitation), the REST API must be enabled and network-reachable, and only the specific endpoints that pass user-controlled sqlfilters into the unsafe rewrite are affected; instances on the fixed commit 14db36e are not exploitable. |
| Impact | The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L, base 7.2) is internally consistent with the description: network-reachable, low complexity, requires low-level privileges (an authenticated API account), no user interaction, and high confidentiality impact with minor integrity/availability impact - matching a read-oriented data-exfiltration SQLi. Real-world risk is meaningfully elevated by publicly available exploit code, a named reporter (VulnCheck) with a published advisory, and the sensitivity of the recoverable data (password hashes and API keys, which enable privilege escalation and lateral movement). Counterbalancing factors: PR:L means an attacker needs valid API credentials, and the flaw is not in CISA KEV, so there is no confirmation of active exploitation in the wild. No EPSS score was provided, so probabilistic exploitation likelihood cannot be cited. Net assessment: a genuine, prioritize-soon issue for internet-exposed Dolibarr API deployments - the authentication requirement lowers it below a pre-auth critical, but the exposure of credential material makes patching urgent. |
| Exploit ScenarioDerived | An attacker holding a low-privilege Dolibarr API account (or a compromised integration token) sends a GET request to the multicurrencies or setup-dictionary list endpoint with a sqlfilters value that closes the expected expression and appends a UNION SELECT against the user table. Because validation only checks parenthesis balance, the injected clause is concatenated into the WHERE clause and executed, returning password hashes and API keys in the API response. Public exploit code lowers the effort required to reproduce this end to end. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 30, 2026
SQL injection in Dolibarr ERP/CRM through version 23.0.3 lets authenticated REST API users exfiltrate arbitrary database contents - including password hashes and API keys - by abusing the sqlfilters parameter on the setup dictionary and multicurrencies list endpoints. The flawed filter only checked for balanced parentheses and rewrote matched triplets, so an appended UNION SELECT placed outside the expected pattern was concatenated into the WHERE clause unmodified. Publicly available exploit code exists and a vendor fix has been committed; the issue is not listed in CISA KEV.
Earlier versions of this analysis (2)
SQL injection in Dolibarr ERP/CRM through version 23.0.3 lets authenticated REST API users exfiltrate arbitrary database contents, including password hashes and API keys, via the sqlfilters query parameter on the setup dictionary and multicurrencies list endpoints. Because the filter is validated only for balanced parentheses, an appended UNION SELECT is concatenated into the SQL WHERE clause unmodified. Publicly available exploit code exists and a vendor patch (commit 14db36e) is available; the flaw was reported by VulnCheck.
SQL injection in Dolibarr ERP/CRM through version 23.0.3 lets authenticated REST API users exfiltrate arbitrary database contents by injecting into the sqlfilters query parameter of the setup-dictionary and multicurrencies list endpoints. Because the filter is only validated for balanced parentheses, an appended UNION SELECT is concatenated into the WHERE clause unmodified, exposing password hashes and API keys. Publicly available exploit code exists and a vendor fix has been released (commit 14db36e); the issue is not listed in CISA KEV.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply the fix from commit 14db36e (https://github.com/Dolibarr/dolibarr/commit/14db36e8486ef725b0d493d97abb2950a54358d3) via PR #38794 (https://github.com/Dolibarr/dolibarr/pull/38794), which routes sqlfilters through forgeSQLFromUniversalSearchCriteria() instead of the weak _checkFilters()/regex rewrite, or upgrade to the next release that incorporates it once published. If immediate patching is not possible, restrict network access to the Dolibarr REST API (bind to localhost or place behind an authenticated reverse proxy / IP allow-list), and consider disabling or blocking the affected list endpoints (setup dictionaries and multicurrencies) at the proxy layer - note this will break legitimate integrations that consume those endpoints. As a defense-in-depth step, rotate API keys and force password resets after patching, since hashes and keys may already have been exposed; deploy a WAF rule to flag 'UNION'/'SELECT' tokens in the sqlfilters parameter, accepting that WAF filtering is bypassable and is only a stopgap.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Dolibarr is a PHP-based open-source ERP/CRM whose REST API exposes a 'sqlfilters' query parameter intended to let clients pass a constrained, structured search expression (triplets of the form (field:operator:value)). The pre-fix code in api_setup.class.php (getListOfRegions, getListOfIncoterms, getListOfVAT) and multicurrency/class/api_multicurrencies.class.php (index) called DolibarrApi::_checkFilters(), which validated only that parentheses were balanced, then used preg_replace_callback over the regex '\(([^:'\(\)]+:[^:'\(\)]+:[^\(\)]+)\)' to rewrite recognized triplets. Any text outside that pattern (e.g. a trailing UNION SELECT) passed through untouched and was appended directly into the SQL WHERE clause - a textbook CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) failure rooted in allow-list shape validation rather than true parameterization. The patch replaces this with forgeSQLFromUniversalSearchCriteria(), Dolibarr's centralized, safer query-builder helper.
Know when Dolibarr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N
Network REST API, low complexity, but requires a valid API account so PR:L; primarily data exfiltration gives C:H with minor I/A impact from injectable SQL.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
Dolibarr through 23.0.3, fixed in commit 14db36e, contains a sql injection vulnerability that allows authenticated API users to exfiltrate arbitrary database contents by supplying malicious values to the sqlfilters query parameter in the setup dictionary and multicurrencies REST API endpoints. The affected endpoints in api_setup.class.php and api_multicurrencies.class.php validate sqlfilters only for balanced parentheses and rewrite matched triplets, allowing text placed outside the expected shape such as an appended UNION SELECT to be concatenated into the SQL WHERE clause unmodified, enabling retrieval of sensitive data including password hashes and API keys.
Executive ViewAI
Dolibarr ERP/CRM versions through 23.0.3 contain a SQL injection vulnerability in REST API endpoints that allows authenticated users to extract sensitive database contents, including password hashes and API keys. Organizations using this financial operations and customer management platform face immediate insider threat and credential compromise risks that could enable lateral movement and unauthorized API access. Publicly available exploit code significantly increases exploitation likelihood, making urgent patching essential.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
An issue in Dolibarr ERP CRM v.17.0.1 and before allows a remote privileged attacker to execute arbitrary code via a cra
Dolibarr before 17.0.1 allows remote code execution by an authenticated user via an uppercase manipulation: <?PHP instea
Dolibarr ERP/CRM 4.0.4 has SQL Injection in doli/theme/eldy/style.css.php via the lang parameter. Rated critical severit
Cross Site Scripting vulnerability in Dolibarr ERP CRM v.17.0.1 and before allows a remote attacker to obtain sensitive
Dolibarr ERP/CRM 4.0.4 stores passwords with the MD5 algorithm, which makes brute-force attacks easier. Rated critical s
SQL injection attacks can result in unauthorized access to sensitive data, such as passwords, credit card details, or pe
Dolibarr Open Source ERP & CRM for Business before v14.0.1 allows attackers to escalate privileges via a crafted API. Ra
Dolibarr ERP & CRM <=15.0.3 is vulnerable to Eval injection. Rated critical severity (CVSS 9.8), this vulnerability is r
The website builder module in Dolibarr 13.0.2 allows remote PHP code execution because of an incomplete protection mecha
The htdocs/index.php?mainmenu=home login page in Dolibarr 10.0.6 allows an unlimited rate of failed authentication attem
SQL injection vulnerability in Dolibarr before 7.0.2 allows remote attackers to execute arbitrary SQL commands via vecto
Dolibarr ERP CRM 7.0.3 contains a remote code evaluation vulnerability that allows unauthenticated attackers to execute
EUVD-2026-40363
GHSA-2852-jv28-2mv8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB