CVE-2026-7688
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA vulnerability was identified in Dolibarr ERP CRM up to 23.0.2. This affects the function _checkValForAPI of the file htdocs/expedition/class/expedition.class.php of the component Shipments API Endpoint. The manipulation of the argument fields leads to sql injection. The attack is possible to be carried out remotely. A high degree of complexity is needed for the attack. It is indicated that the exploitability is difficult. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceSQL injection vulnerability in Dolibarr ERP CRM's Shipments API endpoint (_checkValForAPI function in expedition.class.php). The 'fields' parameter is not properly sanitized before being used in SQL queries, allowing an attacker to inject malicious SQL code. The attack is remotely exploitable but requires high complexity.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Dolibarr installation versionCheck the version number of your Dolibarr installation. This is typically displayed on the Dolibarr login page footer, or can be found in the filehtdocs/admin/info.php or by running: grep -r 'const VERSION' /path/to/dolibarr/htdocs/core/ | head -5Affected if The installed version is lower than 23.0.3 (the fixed version)
-
Verify Shipments module is enabledLog into Dolibarr as admin, go to Setup > Modules, and confirm whether the 'Shipments' module (expedition) is enabled and activeAffected if The Shipments module is enabled and the version is below 23.0.3
-
Confirm API access is enabledCheck if the Dolibarr REST API is enabled. Go to Setup > API (or Setup > Web Services API) and verify that the API is active. Alternatively, check the file htdocs/admin/api.php for API statusAffected if The Dolibarr API is exposed and enabled, and the version is below 23.0.3
-
Inspect vulnerable code in expedition.class.phpLocate the file expedition.class.php in your Dolibarr installation (typically in htdocs/expedition/class/). Open the file and search for the function _checkValForAPI. Examine how the 'fields' parameter is handled in SQL queriesAffected if The _checkValForAPI function contains direct use of the 'fields' parameter in SQL queries without sanitization or parameterized queries, and the version is below 23.0.3
You are affected if your Dolibarr installation is version 23.0.2 or lower, the Shipments module is enabled, the API is exposed, and the expedition.class.php file contains unsanitized 'fields' parameter usage in the _checkValForAPI function.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade to Dolibarr version 23.0.3 or later. Alternatively, implement parameterized queries/prepared statements in the _checkValForAPI function to prevent SQL injection, or add proper input validation/sanitization for the fields parameter before constructing SQL queries.
Dolibarr ERP CRM 23.0.3 or later
- 1. Identify the current Dolibarr ERP CRM version installed in your environment
- 2. Download Dolibarr version 23.0.3 or later from the official Dolibarr website (https://www.dolibarr.org)
- 3. Create a full backup of the database and the Dolibarr installation directory
- 4. Test the upgrade in a non-production environment first
- 5. Apply the upgrade following Dolibarr's standard upgrade procedure
- 6. Verify the _checkValForAPI function in htdocs/expedition/class/expedition.class.php has been patched to prevent SQL injection via the fields parameter
- 7. Test the Shipments API endpoint to confirm normal functionality
- 8. Deploy to production after successful validation
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,120.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-7688 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-7688 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data