CVE-2021-33816:
Dolibarr remote PHP code execution
9.8
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
5/24/2022
Updated
4/24/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
dolibarr/dolibarr | composer | = 13.0.2 | 14.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from incomplete input validation in the website builder module. The advisory explicitly states that while dangerous functions like system/exec/shell_exec were blocked, PHP's backtick operator (which triggers shell command execution via the shell_exec() mechanism) was not sanitized. This allows attackers to inject code like uname -a
via the PAGE_CONTENT parameter, which gets executed when the generated PHP page is rendered. The vulnerable code path resides in the website module's content processing logic, likely in the controller handling the 'updatesource' action.