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.
Remediation
References
Related Vulnerabilities
WordPress Plugin Flip Book 'php.php' Arbitrary File Upload (1.0)
PostgreSQL Uncontrolled Search Path Element Vulnerability (CVE-2020-14349)
Joomla Unrestricted Upload of File with Dangerous Type Vulnerability (CVE-2018-11322)
WordPress Cross-Site Request Forgery (CSRF) Vulnerability (CVE-2017-5489)
Plone CMS URL Redirection to Untrusted Site ('Open Redirect') Vulnerability (CVE-2017-1000481)