# CVE-2022-40871: Dolibarr vulnerable to Eval Injection

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.19%, higher than 89% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-12T00:00:00.000Z
- Modified: 2026-06-17T05:02:10.280Z
- Also known as: GHSA-7cm4-vmf2-8wf2, BIT-DOLIBARR-2022-40871
- Weaknesses: CWE-94, CWE-95
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- dolibarr/dolibarr (Packagist): up to 15.0.3
- dolibarr dolibarr_erp/crm: up to 15.0.3
- dolibarr (Bitnami): up to 15.0.3

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/youncyb/dolibarr-rce> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-40871> (advisory, web)
- <https://github.com/Dolibarr/dolibarr> (package)

## Sources

- CVE List: [CVE-2022-40871](https://www.cve.org/CVERecord?id=CVE-2022-40871), CVE Terms of Use, modified 2025-05-15
- GitHub Advisory Database: [GHSA-7cm4-vmf2-8wf2](https://github.com/advisories/GHSA-7cm4-vmf2-8wf2), CC-BY-4.0, modified 2025-05-15
- NVD: [CVE-2022-40871](https://nvd.nist.gov/vuln/detail/CVE-2022-40871), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DOLIBARR-2022-40871](https://osv.dev/vulnerability/BIT-DOLIBARR-2022-40871), Apache-2.0, modified 2025-04-03

---

Page: https://cve.day/CVE-2022-40871 · Whole record: https://cve.day/CVE-2022-40871.json · Rebuilt by cve.day 2026-11-25T22:58:15.614Z
