Dolibarr Erp\/crmApplication · Dolibarr

CVE-2026-31019

HIGH · 8.8 CVSS v3.1 Published 2026-04-21
Fix available
A fix is available. Upgrade to after 22.0.4 or later.
See remediation →
94/100
Remediation priority · Urgent
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
In the Website module of Dolibarr ERP & CRM 22.0.4 and below, the application uses blacklist-based filtering to restrict dangerous PHP functions related to system command execution. An authenticated user with permission to edit PHP content can bypass this filtering, resulting in full remote code execution with the ability to execute arbitrary operating system commands on the server.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The Website module in Dolibarr ERP & CRM versions 22.0.4 and below implements a blacklist-based filter to block dangerous PHP functions used for system command execution. An authenticated user with permissions to edit PHP content can bypass this filter through various bypass techniques (such as string obfuscation, alternative function names, or case manipulation), achieving full remote code execution and arbitrary OS command execution on the server.

MitigationUpgrade to a patched version of Dolibarr that implements whitelist-based function filtering instead of blacklist filtering, or disable the PHP content editing feature in the Website module until patching is possible.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Dolibarr Erp\/crmApplication
Affected:<= 22.0.4

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Dolibarr installation version
    Locate the version file (commonly version.php or changelog at the Dolibarr root directory) and read the declared version number. Alternatively, access the Dolibarr administration page About section to view the installed version.
    Affected if The installed version is 22.0.4 or lower.
  2. Confirm Website module is enabled
    Log into Dolibarr as an administrator, navigate to Setup > Modules/Applications, and verify whether the Website module is listed as active or enabled.
    Affected if The Website module is installed and enabled.
  3. Verify PHP content editing permission exists
    Access the Website module configuration (typically via the Website module settings page or user permissions panel) and check if the ability to edit PHP content within website pages is granted to any user role.
    Affected if Users with Website editing permissions can add or modify PHP code in website pages.
  4. Inspect the blacklist filter implementation
    Examine the Dolibarr source files related to the Website module, specifically looking for files that implement the PHP function blacklist filter (commonly found in the website module directory under the class or lib subfolders). Look for an array or configuration listing blocked PHP functions like exec, system, shell_exec, passthru, or similar.
    Affected if The code uses a blacklist approach (checking against a list of disallowed functions) rather than a whitelist, which is vulnerable to bypass techniques.

You are affected if your Dolibarr installation is version 22.0.4 or lower, the Website module is enabled, and users can edit PHP content within the Website module.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to a release after 22.0.4
Interim mitigation

Upgrade to a patched version of Dolibarr that implements whitelist-based function filtering instead of blacklist filtering, or disable the PHP content editing feature in the Website module until patching is possible.

Recommended fix Moderate confidence

Dolibarr 22.0.5 or later

  1. 1. Back up your Dolibarr database and files before making any changes.
  2. 2. Download Dolibarr version 22.0.5 or later from the official Dolibarr website or GitHub repository.
  3. 3. Upgrade your Dolibarr installation to the latest stable version to address the blacklist bypass vulnerability in the Website module.
  4. 4. Verify that the PHP function blacklist filtering cannot be bypassed in the Website module's PHP content editing feature.
  5. 5. Review user permissions for the Website module and ensure only trusted users have permission to edit PHP content.
Caveat Standard upgrade precautions apply - test in staging environment first

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Dolibarr Erp\/crm Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing6.0 h
  • Review / QA3.0 h
21.0 hours of engineering $3,680
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,888.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-31019 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-31019 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data