CVE-2012-10059 in Dolibarr products
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.
Affects 0 products from 2 vendors. Facts below cite their sources.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2012-10059 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-090102-I |
| Published | 2025-08-13 |
| Last modified | 2026-06-16 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-78: OS Command Injection
Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-78
CAPEC-108 Command Line Execution through SQL Injection via CWE-78
CAPEC-6 Argument Injection via CWE-78
CAPEC-15 Command Delimiters via CWE-78
CAPEC-88 OS Command Injection via CWE-78
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Dolibarr ERP/CRM versions <= 3.1.1 and <= 3.2.0 are vulnerable to a post-authenticated OS command injection vulnerability in the database backup feature, allowing authenticated users to execute arbitrary system commands on the server.
The vulnerability exists in the export.php script where the sql_compat parameter is not properly sanitized. An attacker with authenticated access can inject malicious commands through this parameter, leading to remote code execution.
Questions
What is CVE-2012-10059?
Dolibarr ERP/CRM versions <= 3.1.1 and <= 3.2.0 are vulnerable to a post-authenticated OS command injection vulnerability in the database backup feature, allowing authenticated users to execute arbitrary system commands on the server.
Is CVE-2012-10059 actively exploited?
Public exploit available for CVE-2012-10059. Exploitation risk elevated.
How do I remediate CVE-2012-10059?
Priority: IMMEDIATE.
What systems are affected by CVE-2012-10059?
CVE-2012-10059 affects Dolibarr; Script.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Dolibarr","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.