CVE-2017-9839 Dolibarr SQL injection via type parameter in product/stats/card.php
An attacker can execute arbitrary SQL commands via the type parameter in product/stats/card.php, potentially reading or modifying database contents.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-9839?
CVE-2017-9839 is a high-severity SQL injection vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 11 Apr 2018. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Dolibarr ERP/CRM is affected by SQL injection in versions before 5.0.4 via product/stats/card.php (type parameter).
Weakness: CWE-89
Which versions are affected by CVE-2017-9839?
2 open source packages ship an affected version, including dolibarr/dolibarr. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
dolibarr/dolibarr Packagist | All versions | 5.0.4 |
dolibarr/dolibarr Packagist | All versions | 5.0.4 |
Products include Dolibarr Dolibarr Erp\/Crm.
How do I fix CVE-2017-9839?
Upgrade dolibarr/dolibarr to 5.0.4 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2017-9839 being exploited?
There is no known exploitation of CVE-2017-9839 in the wild and no public exploit code.
Other vulnerabilities in Dolibarr Dolibarr Erp\/Crm
Sources
Also known as GHSA-84gh-4m36-cgqx, UBUNTU-CVE-2017-9839.