CVE-2012-10059 is a post-authenticated OS command injection vulnerability affecting Dolibarr ERP/CRM versions <= 3.1.1 and <= 3.2.0. The flaw is present in the database backup/export functionality implemented in export.php, where the application fails to properly sanitize the sql_compat parameter before using it in a system-level command context. An authenticated user can supply crafted input in this parameter to inject arbitrary operating system commands, leading to remote code execution on the underlying server.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a single Metasploit module (modules/exploits/linux/http/dolibarr_cmd_exec.rb) that exploits a post-authentication OS command injection vulnerability (CVE-2012-10059) in Dolibarr ERP/CRM version 3.1.1 (and likely other 3.x versions) on Linux/Unix. The exploit targets the backup feature in Dolibarr, specifically the admin/tools/export.php endpoint, where the sql_compat POST parameter is not properly sanitized, allowing an authenticated attacker to inject and execute arbitrary system commands. The module handles authentication, session management, and payload delivery, leveraging Metasploit's command payloads. The only file in the repository is the exploit module itself, written in Ruby, and it is fully operational within the Metasploit framework. The attack vector is network-based, requiring valid credentials to exploit the vulnerability. The main fingerprintable endpoints are /dolibarr/index.php (for authentication) and /dolibarr/admin/tools/export.php (for exploitation).
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
3 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.