← Back to overview

Dolibarr versions 9.0.0 through 23.0.4 are vulnerable to a path traversal attack via the EmailCollector module. The application saves inbound email attachments using filenames taken directly from MIME headers without sanitization. Both saveAttachment() functions in emailcollector.lib.php and emailcollector.class.php construct file paths using unsanitized filenames, allowing traversal sequences to survive intact. An unauthenticated attacker who can send email to a monitored mailbox can write attacker-controlled content outside the intended attachment directory. On hardened deployments, this corrupts or forges documents for other objects; on writable htdocs installations, attackers can reach web-executable paths, potentially enabling remote code execution. The vulnerability affects the record-join, create-ticket, and create-project operations. Version 24.0.0 fixes the issue by applying dol_sanitizePathName() and dol_sanitizeFileName() before file writes.

Affected products

  • Dolibarr 9.0.0 through 23.0.4

Related CVE's

  • CVE-2026-81730

Categories

  • Email & Messaging
  • Enterprise Applications
  • Web Technologies