CVE-2026-31019 Dolibarr user with permission to edit PHP content can bypass filtering to restrict dangerous PHP functions

High 8.8 Published Updated

Authenticated users can bypass blacklist filtering in the Website module to execute arbitrary OS commands, leading to full remote code execution.

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

What is CVE-2026-31019?

CVE-2026-31019 is a high-severity command injection vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 21 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-78

Which versions are affected by CVE-2026-31019?

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

PackageAffectedFixed in
dolibarr/dolibarr PackagistAll versions to 22.0.4None
dolibarr/dolibarr PackagistAll versions to 22.0.4None

Products include Dolibarr Dolibarr Erp\/Crm.

How do I fix CVE-2026-31019?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-31019 being exploited?

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

All Dolibarr Dolibarr Erp\/Crm vulnerabilities

Sources

Also known as GHSA-j2g9-rprv-hrhc, UBUNTU-CVE-2026-31019.

Is CVE-2026-31019 in your software?

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

Check your SBOMs for free