HIGH8.8
GHSA-2gcp-xwxg-hqg3
Dolibarr Unrestricted Upload of File with Dangerous Type
Quick fix
GHSA-2gcp-xwxg-hqg3 — dolibarr/dolibarr: upgrade to the fixed version with the command below.
composer require dolibarr/dolibarr:^11.0.5Details
Dolibarr before 11.0.5 allows low-privilege users to upload files of dangerous types, leading to arbitrary code execution. This occurs because .pht and .phar files can be uploaded. Also, a .htaccess file can be uploaded to reconfigure access control (e.g., to let .noexe files be executed as PHP code to defeat the .noexe protection mechanism).
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/dolibarr/dolibarr
Introduced in:
0Fixed in: 11.0.5Fix
composer require dolibarr/dolibarr:^11.0.5References
- https://nvd.nist.gov/vuln/detail/CVE-2020-14209[ADVISORY]
- https://github.com/Dolibarr/dolibarr[PACKAGE]
- https://github.com/Dolibarr/dolibarr/releases/tag/11.0.5[WEB]
- https://www.wizlynxgroup.com/security-research-advisories/vuln/WLX-2020-012[WEB]
- http://packetstormsecurity.com/files/161955/Dolibarr-ERP-CRM-11.0.4-Bypass-Code-Execution.html[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/dolibarr/dolibarr"]}'