CVE-2026-142691: Dolibarr ERP CRM 8.0.0 through 24.0.4 Unauthenticated File Write via WebDAV MOVE/COPY
Dolibarr ERP CRM 8.0.0 through 24.0.4 contains an authentication bypass and path traversal vulnerability in htdocs/dav/fileserver.php that allows unauthenticated attackers to write arbitrary files when DAVALLOWPUBLICDIR is enabled. Attackers can upload a file to the public directory, then MOVE or COPY it using %2e%2e segments in the Destination header to plant PHP files for remote code execution.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Disable DAV_ALLOW_PUBLIC_DIR to prevent the vulnerable public-directory WebDAV behavior.
Dolibarr ERP CRM DAV_ALLOW_PUBLIC_DIR = false
Event History
Frequently Asked Questions
Which deployments are exposed to unauthenticated exploitation?
Dolibarr ERP CRM versions 8.0.0 through 24.0.4 are exposed when DAV_ALLOW_PUBLIC_DIR is enabled. The vulnerable endpoint is htdocs/dav/fileserver.php.
What does an attacker need to exploit this issue?
No authentication or user interaction is required. The attacker needs access to the WebDAV endpoint and a configuration with DAV_ALLOW_PUBLIC_DIR enabled, allowing them to upload to the public directory and send a MOVE or COPY request with encoded traversal segments in the Destination header.
What is the likely impact if exploitation succeeds?
An attacker can write arbitrary files and plant PHP files, which can lead to remote code execution. The reported impact includes compromise of confidentiality, integrity, and availability.
What can be done if patching cannot happen immediately?
Disable DAV_ALLOW_PUBLIC_DIR to remove the public-directory condition required by the described attack. Restricting access to the WebDAV endpoint can also reduce exposure, but the provided data specifically identifies disabling DAV_ALLOW_PUBLIC_DIR as the relevant control.