Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-40871

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-40871
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 17:55 UTC · Revision 1

Source evidence

CVE-2022-40871

core-osv · Original source

Published 12 Oct 2022, 00:00 UTC

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.

osv:CVE-2022-40871
Complete source record
{
  "id": "40c169f4a6d95ba5fee2c3dbdda14b8be8f0f08cd592c1f8745d4650a1746d57",
  "url": "https://osv.dev/vulnerability/CVE-2022-40871",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-40871",
    "summary": "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.",
    "evidence": "osv:CVE-2022-40871",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-40871",
      "aliases": [
        "BIT-dolibarr-2022-40871",
        "CVE-2022-40871",
        "GHSA-7cm4-vmf2-8wf2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/dolibarr/dolibarr",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "a9c8c24e9b17f5b48af599345a5f633adecc7b0a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:dolibarr:dolibarr_erp\\/crm:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "15.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "14.0.0",
            "15.0.3",
            "15.0.1",
            "15.0.0",
            "14.0.1",
            "6.0.0-beta",
            "5.0.0-beta",
            "4.0.0-rc",
            "3.8.0-beta",
            "3.7.1",
            "3.7.0",
            "3.6.2",
            "3.6.1",
            "3.6.0",
            "3.6.0-beta",
            "3.6.beta1_20140514",
            "3.6.0-alpha",
            "3.5.beta1_20131120",
            "3.5.beta1_20131106",
            "3.4.beta1_20130502",
            "3.4.beta1_20130429",
            "3.3.beta1_20121221"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-40871.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.332197415Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40871.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-40871",
        "https://github.com/youncyb/dolibarr-rce"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40871.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-40871",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 520031,
  "published_at": "2022-10-12T00:00:00+00:00"
}