CVE-2021-33816 Dolibarr remote PHP code execution

Critical 9.8 Published Updated

Remote attackers can execute arbitrary PHP code in Dolibarr's website builder due to incomplete command blocking, requiring immediate patching.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-33816?

CVE-2021-33816 is a critical code injection vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 10 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The website builder module in Dolibarr 13.0.2 allows remote PHP code execution because of an incomplete protection mechanism in which system, exec, and shell_exec are blocked but backticks are not blocked.

Weakness: CWE-94

Which versions are affected by CVE-2021-33816?

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

PackageAffectedFixed in
dolibarr/dolibarr PackagistFrom 13.0.214.0.0
dolibarr/dolibarr PackagistFrom 13.0.214.0.0
dolibarr BitnamiFrom 13.0.2 to 13.0.2None

Products include Dolibarr Dolibarr Erp\/Crm.

How do I fix CVE-2021-33816?

Upgrade dolibarr/dolibarr to 14.0.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-33816 being exploited?

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

All Dolibarr Dolibarr Erp\/Crm vulnerabilities

Sources

Also known as BIT-dolibarr-2021-33816, GHSA-vxr9-p2xw-m8cf, UBUNTU-CVE-2021-33816.

Is CVE-2021-33816 in your software?

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

Check your SBOMs for free