CVE-2024-29477
High · 8.8CVSS
8.8
EPSS
0.8%
Published
Apr 3, 2024
CISA due date
—
Cloudanix analysis
A flaw in the Dolibarr business-software setup process lets someone on the same network run harmful commands on the server if the software has not been updated.
- Exploitation
- Adjacent Network
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Unsanitized input during the Dolibarr installation process permits command injection, allowing an adjacent-network attacker to execute arbitrary operating-system commands.
Why it matters to the business
Successful exploitation can result in full compromise of the ERP/CRM server, data theft, or ransomware deployment; the vulnerability affects all organizations still running versions prior to the patched commit and carries a low but non-zero exploitation probability.
How an attack unfolds
An attacker on the same network segment supplies a malicious payload in one of the installation fields; because the input is not sanitized before being passed to a system command, the payload is executed with the privileges of the web-server process, granting remote code execution without authentication.
How to fix it
Upgrade Dolibarr to the commit 45d56dffd284f80de1f14466051a2ee14bdd7132 or later; if an upgrade is not immediately feasible, restrict network access to the installer and remove or disable the installation directory after setup.
How to confirm the fix worked
Verify that the running codebase contains commit 45d56dffd284f80de1f14466051a2ee14bdd7132; confirm the installer no longer passes unsanitized user input to system commands by reviewing the changed files and re-testing the installation flow with injection payloads.
Typical attack path
- Gain adjacent network access to the Dolibarr installation host
- Reach the web installer interface before or during initial setup
- Submit a crafted string containing command-injection syntax in an installation parameter
- Trigger execution of the unsanitized input by the installer script
- Obtain a shell or execute further commands on the host
How to detect it
Review web-server and application logs for unexpected system-command execution or error messages during installation; look for unusual processes spawned by the web-server user around the time of any installation activity.
What your security team should do
- Immediately upgrade all Dolibarr instances to the fixed commit
- Restrict installation endpoints to trusted networks only
- Monitor for any post-installation attempts to reach installer scripts
- Include Dolibarr in the next patch-cycle scan and asset inventory review
The record
Lack of sanitization during Installation Process in Dolibarr ERP CRM up to version 19.0.0 allows an attacker with adjacent access to the network to execute arbitrary code via a specifically crafted input.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | dolibarr/dolibarr | 0 | No fix |
| Bitnami | dolibarr | 0 | 19.0.1 |
| Ubuntu:16.04:LTS | dolibarr | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | dolibarr | 0 | No fix |
Related vulnerabilities
- CVE-2021-3991 Improper Authorization in dolibarr/dolibarr Also affects dolibarr/dolibarr
- CVE-2024-40137 Dolibarr ERP CRM before 19.0.2-php8.2 was discovered to contain a remote code execution… Also affects dolibarr/dolibarr
- CVE-2024-34051 A Reflected Cross-site scripting (XSS) vulnerability located in… Also affects dolibarr/dolibarr
- CVE-2024-5315 Vulnerabilities in Dolibarr ERP - CRM that affect version 9.0.1 and allow SQL injection. Also affects dolibarr/dolibarr
- CVE-2024-5314 Vulnerabilities in Dolibarr ERP - CRM that affect version 9.0.1 and allow SQL injection. Also affects dolibarr/dolibarr
- CVE-2024-31503 Incorrect access control in Dolibarr ERP CRM versions 19.0.0 and before, allows… Also affects dolibarr/dolibarr
- CVE-2023-38887 File Upload vulnerability in Dolibarr ERP CRM v.17.0.1 and before allows a remote… Also affects dolibarr/dolibarr
- CVE-2023-38888 Cross Site Scripting vulnerability in Dolibarr ERP CRM v.17.0.1 and before allows a… Also affects dolibarr/dolibarr