Skip to content
OpenAdvisories
Critical · 9.4 Public exploit CVE-2026-23500 EUVD-2026-23502GHSA-w5j3-8fcr-h87w

Dolibarr: OS Command Injection (RCE) via MAIN_ODT_AS_PDF configuration

Published Apr 17, 2026 · Updated Apr 18, 2026 · Assigned by GitHub_M

Description

Dolibarr is an enterprise resource planning (ERP) and customer relationship management (CRM) software package. In versions prior to 23.0.0 , the ODT to PDF conversion process in odf.php concatenates the MAIN_ODT_AS_PDF configuration constant directly into a shell command passed to exec() without sanitization. An authenticated administrator can inject arbitrary OS commands via this constant using command separators, achieving remote code execution as the web server user when any ODT template is generated. This issue has been fixed in version 23.0.0.

Affected products

VendorProductAffectedFixed
Dolibarr dolibarr < 23.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS dolibarr No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • lukasz-rybak/CVE-2026-23500 ★ 0 · Apr 11, 2026

    CVE-2026-23500 - OS Command Injection (RCE) via MAIN_ODT_AS_PDF configuration in Dolibarr

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist dolibarr/dolibarr <= 22.0.4 — GHSA-w5j3-8fcr-h87w

References