CVE-2026-142691
Dolibarr ERP CRM 8.0.0 through 24.0.4 unauthenticated file write via WebDAV MOVE/COPY (CVE-2026-142691)
Dolibarr ERP CRM 8.0.0 through 24.0.4 has an unauthenticated file write through its WebDAV endpoint when public uploads are enabled, leading to remote PHP execution. A fix is available; apply it and restrict WebDAV access.
What happened
Dolibarr ERP CRM versions 8.0.0 through 24.0.4 contain an authentication bypass and path traversal weakness in htdocs/dav/fileserver.php. When DAV_ALLOW_PUBLIC_DIR is enabled, an unauthenticated attacker can reach the WebDAV endpoint over the network and place a file in the public directory. The attacker then sends a MOVE or COPY request whose Destination header uses %2e%2e segments to escape the intended directory and write the file elsewhere.
The practical result is remote code execution: an attacker can plant a PHP file in a web-accessible location and have the Dolibarr web server execute it. The flaw is rated critical with a CVSS 4.0 score of 9.2. The CVE record does not list active exploitation, and CISA's KEV catalogue does not include it at this time.
Who is affected
Dolibarr ERP CRM versions 8.0.0 through 24.0.4 are affected when DAV_ALLOW_PUBLIC_DIR is enabled. Instances that do not expose the WebDAV endpoint, or have public directory access disabled, are not exposed by this path. No other products are listed in the CVE record.
What to do now
- Identify Dolibarr instances in the affected range and check whether DAV_ALLOW_PUBLIC_DIR is enabled. If it is, treat this as a priority remediation.
- Apply the vendor's fix. The CVE record states a fix is available but does not list a fixed version number; use the Dolibarr commit references shown with this advisory to confirm the patched release before upgrading.
- Until patched, disable DAV_ALLOW_PUBLIC_DIR if the feature is not required, or restrict network access to /dav/fileserver.php to trusted hosts only.
- Review web-accessible directories for unexpected PHP files outside the intended public upload location, and check WebDAV logs for MOVE or COPY requests with %2e%2e in the Destination header.
How to detect it
Look for MOVE or COPY requests to /dav/fileserver.php with %2e%2e in the Destination header, and for PHP files appearing in web-accessible directories outside the public upload folder. An externally reachable WebDAV endpoint is itself a finding if the feature is not required.
Beyond the patch
This is an unauthenticated, network-reachable file write that becomes remote code execution, making an exposed WebDAV endpoint a direct path to full ERP compromise. If you are not sure which Dolibarr instances expose /dav/fileserver.php, Virtual CISO Services (vCISO) can run exposure management to find and track that service. If a system has already been reached, Managed Detection & Response (MDR) can detect the code execution or credential abuse that follows.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Dolibarr ERP CRM | 8.0.0 – ≤ 24.0.4 | No fixed version listed yet |