CVE-2026-31019: Dolibarr user with permission to edit PHP content can bypass filtering to restrict dangerous PHP functions
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.
Published Apr 21, 2026 · Updated Apr 29, 2026
Affected packages
dolibarr/dolibarr
- Ecosystem
- Composer (PHP)
- Affected
- <= 22.0.4
- Fixed in
- No patched version yet
- Check
composer show dolibarr/dolibarr
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-33944
Dolibarr has SQL Injection in societe/class/societe.class.php via localtax1_value parameter
high8.8Oct 27, 2026CVE-2026-10215
Dolibarr ERP CRM is vulnerable to Improper Authorization through its Leave Request REST API
low4.3No fixJun 1, 2026CVE-2018-25357
Dolibarr ERP CRM contains a remote code evaluation vulnerability
critical9.8May 26, 2026CVE-2026-7688
Dolibarr has an Injection issue
low5.0No fixMay 3, 2026CVE-2026-7689
Dolibarr has Insufficient Verification of Data Authenticity
low3.7No fixMay 3, 2026CVE-2026-31018
Dolibarr Allows Code Injection through its Website Module
high8.8No fixApr 21, 2026
