What’s Vulnerable › Vulnerabilities
CVE-2021-23340: Local File Inclusion
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-02-18 · updated 2026-06-17
- Weakness: CWE-22
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.
Affected products
- pimcore/pimcore: before 6.8.8 — fixed in 6.8.8
How to fix
Upgrade to a fixed version: pimcore/pimcore 6.8.8. Check the vendor advisory for mitigations.
References
- https://github.com/pimcore/pimcore/blob/v6.7.2/bundles/AdminBundle/Controller/Reports/CustomReportController.php%23L454
- https://github.com/pimcore/pimcore/commit/1786bdd4962ee51544fad537352c2b4223309442
- https://snyk.io/vuln/SNYK-PHP-PIMCOREPIMCORE-1070132
- https://github.com/pimcore/pimcore/blob/v6.7.2/bundles/AdminBundle/Controller/Reports/CustomReportController.php%23L454
- https://github.com/pimcore/pimcore/commit/1786bdd4962ee51544fad537352c2b4223309442
- https://snyk.io/vuln/SNYK-PHP-PIMCOREPIMCORE-1070132
Get alerted when CVE-2021-23340 or the next vulnerability affects your stack