Servers and applications
CVE-2026-81730
Dolibarr 9.0.0 through 23.0.4 saves inbound email attachments under the name supplied in the message's MIME headers without reducing it to a safe basename. The global saveAttachment() in htdocs/emailcollector/lib/emailcollector.lib.php builds $filepath = $path . $filename . '.' . $ext and hands it to file_put_contents(), and the private saveAttachment() in…
- Severity
- High 8.8
- Published
- 27 Aug 2026
- Last changed
- 31 Aug 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 24.0.0
- Exploit chance
- 0.6% in the next 30 daysHigher than 47% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Path traversal (CWE-22)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Change data · Slow it down
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X- Sources
- NVD
Description
Dolibarr 9.0.0 through 23.0.4 saves inbound email attachments under the name supplied in the message's MIME headers without reducing it to a safe basename. The global saveAttachment() in htdocs/emailcollector/lib/emailcollector.lib.php builds $filepath = $path . $filename . '.' . $ext and hands it to file_put_contents(), and the private saveAttachment() in htdocs/emailcollector/class/emailcollector.class.php writes to $destdir.'/'.$filename; the name reaches both from the attachment's own getName() or getFilename() value by way of the record-join, create-ticket and create-project operations. A traversal sequence in the filename therefore survives intact, so any sender who can email a mailbox that an EmailCollector monitors, which is the module's ordinary use for a support or ticket inbox, can place attacker-controlled content outside the per-object attachment directory without holding a Dolibarr account.
Affected software
| Software | Affected versions |
|---|---|
Dolibarr ERP CRMServers and applications · cpe:a:dolibarr:dolibarr_erp\/crm |
|
About Dolibarr ERP CRM
Open Source ERP & CRM for Business
- Monthly downloads (Packagist)
- 6Packagist, 15 Nov 2026
- Total downloads (Packagist)
- 5,256Packagist, 15 Nov 2026
- Docker Hub pulls
- 1,398,358Docker Hub, 15 Nov 2026
- GitHub stars
- 7,873GitHub, 15 Nov 2026
- Forks
- 3,622GitHub, 15 Nov 2026
- Latest release
- 24.0.3GitHub, 15 Nov 2026
- Released
- 11 Nov 2026GitHub
- Developer
- DolibarrWikidata
- License
- GPL-3.0GitHub
- Written in
- PHP, SQLWikidata
- First released
- 2002Wikidata
- First published on GitHub
- 26 Jun 2011GitHub
Website Source code Docker image Package
Vulnerabilities in Dolibarr ERP CRM
- In our list
- 154
- Published in the last 12 months
- 26
- Critical, last 12 months
- 3
- High, last 12 months
- 18
- Known exploited
- 0
- CVE-2026-133327Dolibarr ERP CRM Document Upload files.lib.php dol_convert_file code injectionMedium 5.3 19 Nov 2026
- CVE-2026-89037Dolibarr < 24.0.2 IDOR via Ticket Documents APIHigh 7.1 13 Nov 2026
- CVE-2026-125754Dolibarr 20.0.0 through 23.0.4 and 24.x before 24.0.2 IDOR via ExpenseReport Payment APIHigh 7.1 10 Nov 2026
- CVE-2026-116219Dolibarr ERP CRM before 24.0.0 OS Command Injection via mysqldump ParameterHigh 8.6 26 Oct 2026
- CVE-2026-116218Dolibarr ERP CRM 19.0.0 before 23.0.4 SQL Injection via bankaccounts API type fieldHigh 7.2 26 Oct 2026
- GHSA-5cfw-655w-vqp8Remote Code Execution through incomplete sandbox in dol_eval_standard() (computed extrafields)Critical 9.1 21 Oct 2026