CVE-2021-23394
elFinder unsafe upload filtering leading to remote code execution
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high).
Description
The package studio-42/elfinder before 2.1.58 are vulnerable to Remote Code Execution (RCE) via execution of PHP code in a .phar file. NOTE: This only applies if the server parses .phar files as PHP.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| composer::GitHub Security Advisory Composer | studio-42/elfinder | 2.1.58 |
References
- https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities
- https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities/
- https://github.com/Studio-42/elFinder
- https://github.com/Studio-42/elFinder/commit/75ea92decc16a5daf7f618f85dc621d1b534b5e1
- https://github.com/Studio-42/elFinder/issues/3295
- https://github.com/Studio-42/elFinder/security/advisories/GHSA-qm58-cvvm-c5qr
- https://nvd.nist.gov/vuln/detail/CVE-2021-23394
- https://snyk.io/vuln/SNYK-PHP-STUDIO42ELFINDER-1290554