CVE-2022-40871 Dolibarr vulnerable to Eval Injection

Critical 9.8 Published Updated

Attackers can execute arbitrary code by injecting malicious payloads into the database via the default administrator installation page.

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

What is CVE-2022-40871?

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

Official description

Dolibarr ERP & CRM <=15.0.3 is vulnerable to Eval injection. By default, any administrator can be added to the installation page of dolibarr, and if successfully added, malicious code can be inserted into the database and then execute it by eval.

Weakness: CWE-94

Which versions are affected by CVE-2022-40871?

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

PackageAffectedFixed in
dolibarr/dolibarr PackagistAll versions to 15.0.3None
dolibarr/dolibarr PackagistAll versions to 15.0.3None
dolibarr BitnamiAll versions to 15.0.3None

Products include Dolibarr Dolibarr Erp\/Crm.

How do I fix CVE-2022-40871?

No fix has been published for CVE-2022-40871 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2022-40871 being exploited?

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

All Dolibarr Dolibarr Erp\/Crm vulnerabilities

Sources

Also known as BIT-dolibarr-2022-40871, GHSA-7cm4-vmf2-8wf2, UBUNTU-CVE-2022-40871.

Is CVE-2022-40871 in your software?

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

Check your SBOMs for free