Skip to content
WatchlistCritical

CVE-2022-40871dolibarr Code Injection

Dolibarr vulnerable to Eval Injection

Published Oct 12, 2022 · Updated Aug 12, 2026 · Also known as BIT-dolibarr-2022-40871, GHSA-7cm4-vmf2-8wf2, UBUNTU-CVE-2022-40871

Key Facts

Patch in the next maintenance window
  • CVE-2022-40871 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Dolibarr Erp\/crm, dolibarr (bitnami), dolibarr/dolibarr (composer).
  • It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
  • EPSS estimates a 34% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Dolibarr Erp\/crm <=15.0.3, Dolibarr Erp\/crm 15.0.3.
  • Brandefense priority: patch in the next maintenance window, because of its high severity, although no exploitation is known.

Scores

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

34%

Higher than 98.3% of all scored CVEs

Exploit maturity

Proof of concept

ATLAS score

45/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Proof of concept

Public exploit code

1

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

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.

Affected Products

4 affected entries in total
ProductAffected versionsFixed in
Dolibarr Erp\/crmDolibarrSee advisory15.0.3
dolibarrbitnamiSee advisoryn/a
dolibarr/dolibarrcomposerSee advisoryn/a

Patched Releases

Dolibarr Erp\/crm

<=15.0.3

Timeline

  1. Publicly disclosed

    Oct 12, 2022

  2. Last updated

    Aug 12, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code ('Code Injection')
  • CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

References

1 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2022-40871 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Oct 19, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.