{"id":"CVE-2021-23340","published":"2021-02-18T14:25:14Z","modified":"2024-09-17T03:43:54Z","title":"Local File Inclusion","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N/E:F/RL:O/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01332,"percentile":0.71805,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-PHP-PIMCOREPIMCORE-1070132","tags":["x_refsource_MISC"]},{"url":"https://github.com/pimcore/pimcore/blob/v6.7.2/bundles/AdminBundle/Controller/Reports/CustomReportController.php%23L454","tags":["x_refsource_MISC"]},{"url":"https://github.com/pimcore/pimcore/commit/1786bdd4962ee51544fad537352c2b4223309442","tags":["x_refsource_MISC"]}],"priority":{"score":19.3,"factors":[{"name":"EPSS percentile","points":14.36},{"name":"CVSS severity","points":4.97}]},"affectedVersions":[{"vendor":"n/a","product":"pimcore/pimcore","versions":[">= unspecified, < 6.8.8"]}],"affected":[{"ecosystem":"Packagist","package":"pimcore/pimcore","vulnerableRanges":["<6.8.8"],"patched":["6.8.8"],"from":["GHSA-h7f9-cvh5-qw7f"],"provenance":"source"}],"summary":{"text":"A Local File Inclusion flaw exists in the downloadCsvAction function of the CustomReportController class in the pimcore/pimcore package, affecting versions before 6.8.8. An authenticated user who sends a GET request to the custom-report download-csv admin endpoint can abuse the unsanitized exportFile parameter to include local files, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:41Z"},"euvd":{"id":"EUVD-2021-0554","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pimcore-pimcore-cve-2021-23340","children":[{"from":"CVE-2021-23340","to":"CVE-2023-2614","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["bundles/AdminBundle/Controller/Reports/CustomReportController.php"],"commits":["https://github.com/pimcore/pimcore/commit/1786bdd4962ee51544fad537352c2b4223309442","https://github.com/pimcore/pimcore/commit/c36ef54ce33f7b5e74b7b0ab9eabfed47c018fc7"],"basis":"shared function","functions":["downloadCsvAction"]}]},{"from":"CVE-2021-23340","to":"CVE-2023-30855","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["bundles/AdminBundle/Controller/Reports/CustomReportController.php"],"commits":["https://github.com/pimcore/pimcore/commit/1786bdd4962ee51544fad537352c2b4223309442","https://github.com/pimcore/pimcore/commit/f1d904094700b513c4756904fa2b1e19d08d890e","https://github.com/pimcore/pimcore/commit/7f788fa44bc18bc1c9182c25e26b770a1d30b62f"],"basis":"shared function","functions":["createCsvAction","downloadCsvAction"]}]}],"packageHistory":[{"cve":"CVE-2019-18656","published":"2019-10-31","fixed":"6.3.0","kev":false},{"cve":"CVE-2019-18982","published":"2019-11-15","fixed":"6.3.0","kev":false},{"cve":"CVE-2020-7759","published":"2020-10-30","fixed":"6.8.3","kev":false,"link":{"from":"CVE-2020-7759","to":"CVE-2021-23340","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:pimcore/pimcore","fromFixed":"6.8.3","toFixed":"6.8.8","daysApart":111}]}},{"cve":"CVE-2021-23340","published":"2021-02-18","fixed":"6.8.8","kev":false},{"cve":"CVE-2021-23405","published":"2021-07-09","fixed":"10.0.7","kev":false},{"cve":"CVE-2021-37702","published":"2021-08-18","fixed":"10.1.1","kev":false},{"cve":"CVE-2021-39166","published":"2021-09-01","fixed":"10.1.2","kev":false}],"package":"Packagist:pimcore/pimcore"}}