CVE-2018-19994 Dolibarr error-based SQL injection vulnerability in product/card.php

High 8.8 Published Updated

Authenticated attackers can execute arbitrary SQL commands via the desiredstock parameter in Dolibarr, 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-2018-19994?

CVE-2018-19994 is a high-severity SQL injection vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 3 Jan 2019. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An error-based SQL injection vulnerability in product/card.php in Dolibarr version 8.0.2 allows remote authenticated users to execute arbitrary SQL commands via the desiredstock parameter.

Weakness: CWE-89

Which versions are affected by CVE-2018-19994?

2 open source packages ship an affected version, including dolibarr/dolibarr. It affects 1 product.

PackageAffectedFixed in
dolibarr/dolibarr PackagistAll versions8.0.4
dolibarr/dolibarr PackagistAll versions8.0.4

Products include Dolibarr Dolibarr Erp\/Crm.

How do I fix CVE-2018-19994?

Upgrade dolibarr/dolibarr to 8.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-2018-19994 being exploited?

There is no known exploitation of CVE-2018-19994 in the wild and no public exploit code.

All Dolibarr Dolibarr Erp\/Crm vulnerabilities

Sources

Also known as GHSA-78hj-952q-99rw, UBUNTU-CVE-2018-19994.

Is CVE-2018-19994 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free