CVE-2012-10059 Dolibarr ERP/CRM Post-Auth OS Command Injection
Authenticated attackers can inject OS commands via the database backup feature in Dolibarr ERP/CRM, leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2012-10059?
CVE-2012-10059 is a critical command injection vulnerability in Dolibarr Project ERP/CRM, published on 13 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Dolibarr ERP/CRM versions <= 3.1.1 and <= 3.2.0 contain a post-authenticated OS command injection vulnerability in its database backup feature. The export.php script fails to sanitize the sql_compat parameter, allowing authenticated users to inject arbitrary system commands, resulting in remote code execution on the server.
Weakness: CWE-78
Which versions are affected by CVE-2012-10059?
How do I fix CVE-2012-10059?
No fix has been published for CVE-2012-10059 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2012-10059 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-10059 exists.
Public exploit code: 1 Metasploit module.
Sources
Also known as GHSA-p23h-626c-6g34, UBUNTU-CVE-2012-10059.