CVE-2024-40137
Medium · 5.5CVSS
5.5
EPSS
0.7%
Published
Jul 24, 2024
CISA due date
—
Cloudanix analysis
A flaw in an older version of business software lets someone with admin rights run their own commands on the server if they reach a particular settings page.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- RCE
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Authenticated administrator can supply a malicious Computed field value under Users Module Setup that results in arbitrary code execution on the server.
Why it matters to the business
An attacker who already holds administrative access can run commands on the server hosting the ERP system, risking data theft, service disruption, or further network compromise; low EPSS and no KEV listing indicate limited observed exploitation to date.
How an attack unfolds
An attacker with administrative credentials accesses the Users Module Setup page, crafts a payload inside the Computed field parameter, and triggers processing that executes the supplied code on the underlying PHP runtime.
How to fix it
Upgrade Dolibarr to version 19.0.2-php8.2 or later; the listed Chromium packages on Debian 12 should be updated to 127.0.6533.88-1~deb12u1 where applicable in mixed environments.
How to confirm the fix worked
Confirm the installed Dolibarr version is at least 19.0.2-php8.2 and that the Computed field no longer accepts or processes unsanitized input that can lead to code execution.
Typical attack path
- Obtain administrative account on Dolibarr instance
- Navigate to Users Module Setup
- Modify the Computed field parameter with attacker-controlled input
- Submit the change to trigger server-side code execution
How to detect it
Inspect web server and application logs for unusual submissions to the Users Module Setup endpoint containing code-like strings in the Computed field; correlate with successful PHP process spawns or unexpected file writes initiated by the web server user.
What your security team should do
- Apply the 19.0.2-php8.2 update immediately on all internet-facing instances
- Review administrative access controls and enforce least privilege for ERP users
- Monitor EPSS score and threat intelligence feeds for any future increase in exploitation activity
The record
Dolibarr ERP CRM before 19.0.2-php8.2 was discovered to contain a remote code execution (RCE) vulnerability via the Computed field parameter under the Users Module Setup function.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | dolibarr/dolibarr | 0 | 19.0.2 |
| Ubuntu:16.04:LTS | dolibarr | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | dolibarr | 0 | No fix |
| packagist | dolibarr/dolibarr | 0 | No fix |
Related vulnerabilities
- CVE-2021-3991 Improper Authorization in dolibarr/dolibarr 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-2024-29477 Lack of sanitization during Installation Process in Dolibarr ERP CRM up to version 19.0.0… 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