Skip to main content

Dolibarr CVE-2026-58376

| EUVDEUVD-2026-40363 HIGH
SQL Injection (CWE-89)
2026-06-30 VulnCheck GHSA-2852-jv28-2mv8
7.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid low-privilege API credentials
  2. Delivery
    Call setup/multicurrencies list endpoint
  3. Exploit
    Inject UNION SELECT via sqlfilters parameter
  4. Execution
    Bypass parenthesis-only validation
  5. Persist
    Concatenate into SQL WHERE clause
  6. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 30, 2026 - 17:32 cvss changed CVSS 7.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.

v1 Jun 30, 2026 - 17:20 CVSS 7.6

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

dolibarr 0 ≤23.0.3

Affected Packages

euvd dolibarr no fix

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

Vendor (VulnCheck) PRIMARY 7.2 HIGH
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
vuln.today AI 7.6 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Jun 30, 2026 - 17:32 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 17:32 vuln.today
v2 - CVSS changed
CVSS changed
Jun 30, 2026 - 17:22 NVD
7.6 (HIGH) 7.2 (HIGH)

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Medium
popular open-source ERP/CRM for SMBs, common but not ubiquitous
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2023-38886 HIGH POC
7.2 Sep 20

An issue in Dolibarr ERP CRM v.17.0.1 and before allows a remote privileged attacker to execute arbitrary code via a cra

CVE-2023-30253 HIGH POC
8.8 May 29

Dolibarr before 17.0.1 allows remote code execution by an authenticated user via an uppercase manipulation: <?PHP instea

CVE-2017-7886 CRITICAL POC
9.8 May 10

Dolibarr ERP/CRM 4.0.4 has SQL Injection in doli/theme/eldy/style.css.php via the lang parameter. Rated critical severit

CVE-2023-38888 CRITICAL POC
9.6 Sep 20

Cross Site Scripting vulnerability in Dolibarr ERP CRM v.17.0.1 and before allows a remote attacker to obtain sensitive

CVE-2017-7888 CRITICAL POC
9.8 May 10

Dolibarr ERP/CRM 4.0.4 stores passwords with the MD5 algorithm, which makes brute-force attacks easier. Rated critical s

CVE-2022-4093 CRITICAL POC
9.8 Nov 21

SQL injection attacks can result in unauthorized access to sensitive data, such as passwords, credit card details, or pe

CVE-2022-43138 CRITICAL POC
9.8 Nov 17

Dolibarr Open Source ERP & CRM for Business before v14.0.1 allows attackers to escalate privileges via a crafted API. Ra

CVE-2022-40871 CRITICAL POC
9.8 Oct 12

Dolibarr ERP & CRM <=15.0.3 is vulnerable to Eval injection. Rated critical severity (CVSS 9.8), this vulnerability is r

CVE-2021-33816 CRITICAL POC
9.8 Nov 10

The website builder module in Dolibarr 13.0.2 allows remote PHP code execution because of an incomplete protection mecha

CVE-2020-7995 CRITICAL POC
9.8 Jan 26

The htdocs/index.php?mainmenu=home login page in Dolibarr 10.0.6 allows an unlimited rate of failed authentication attem

CVE-2018-10094 CRITICAL POC
9.8 May 22

SQL injection vulnerability in Dolibarr before 7.0.2 allows remote attackers to execute arbitrary SQL commands via vecto

CVE-2018-25357 CRITICAL POC
9.3 May 23

Dolibarr ERP CRM 7.0.3 contains a remote code evaluation vulnerability that allows unauthenticated attackers to execute

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy