CVE-2021-36625 SQL Injection in Dolibarr

High 8.8 Published Updated

Attackers can execute arbitrary SQL commands via the country_id parameter in Dolibarr ERP/CRM, 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-2021-36625?

CVE-2021-36625 is a high-severity SQL injection vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 31 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An SQL Injection vulnerability exists in Dolibarr ERP/CRM 13.0.2 (fixed version is 14.0.0) via a POST request to the country_id parameter in an UPDATE statement.

Weakness: CWE-89

Which versions are affected by CVE-2021-36625?

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

PackageAffectedFixed in
dolibarr/dolibarr PackagistAll versions14.0.0
dolibarr/dolibarr PackagistAll versions14.0.0
dolibarr BitnamiFrom 13.0.2 to 13.0.2None

Products include Dolibarr Dolibarr Erp\/Crm.

How do I fix CVE-2021-36625?

Upgrade dolibarr/dolibarr to 14.0.0 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-2021-36625 being exploited?

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

All Dolibarr Dolibarr Erp\/Crm vulnerabilities

Sources

Also known as BIT-dolibarr-2021-36625, GHSA-vrgp-3ph6-2wwq, UBUNTU-CVE-2021-36625.

Is CVE-2021-36625 in your software?

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

Check your SBOMs for free