CVE-2021-23340 Local File Inclusion
An authenticated attacker can exploit a local file inclusion vulnerability in the CustomReportController to read arbitrary files from the server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-23340?
CVE-2021-23340 is a high-severity path traversal vulnerability in Pimcore Pimcore, published on 18 Feb 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
This affects the package pimcore/pimcore before 6.8.8. A Local FIle Inclusion vulnerability exists in the downloadCsvAction function of the CustomReportController class (bundles/AdminBundle/Controller/Reports/CustomReportController.php). An authenticated user can reach this function with a GET request at the following endpoint: /admin/reports/custom-report/download-csv?exportFile=&91;filename]. Since exportFile variable is not sanitized, an attacker can exploit a local file inclusion vulnerability.
Weakness: CWE-22
Which versions are affected by CVE-2021-23340?
2 open source packages ship an affected version, including pimcore/pimcore. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pimcore/pimcore Packagist | All versions | 6.8.8 |
pimcore/pimcore Packagist | All versions | 6.8.8 |
Products include Pimcore Pimcore.
How do I fix CVE-2021-23340?
Upgrade pimcore/pimcore to 6.8.8 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-23340 being exploited?
There is no known exploitation of CVE-2021-23340 in the wild and no public exploit code.
Other vulnerabilities in Pimcore Pimcore
- CVE-2022-39365 RCE vulnerability in Pimcore/Mail & Dynamic Text Layout
- CVE-2019-18981 Pimcore Access Control Issues
- CVE-2019-18985 Pimcore 2FA Vulnerable to Brute Forcing
- CVE-2026-23492 Pimcore has a Blind SQL Injection in Admin Search Find API due to an incomplete fix for CVE-2023-30848
- CVE-2023-47637 SQL Injection in Admin Grid Filter API in Pimcore
Sources
Also known as GHSA-h7f9-cvh5-qw7f, SNYK-PHP-PIMCOREPIMCORE-1070132.