{"id":"CVE-2021-23340","aliases":["CVE-2021-23340","GHSA-h7f9-cvh5-qw7f","SNYK-PHP-PIMCOREPIMCORE-1070132"],"related":[],"kind":"vulnerability","state":"published","title":"Local File Inclusion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Esto afecta al paquete pimcore/pimcore versiones anteriores a 6.8.8.&#xa0;Se presenta una vulnerabilidad de inclusión de archivo local en la función downloadCsvAction de la clase CustomReportController (bundles/AdminBundle/Controller/Reports/CustomReportController.php).&#xa0;Un usuario autenticado puede acceder a esta función con una petición GET en el siguiente endpoint: /admin/reports/custom-report/download-csv?exportFile=&amp;91;filename].&#xa0;Dado que la variable exportFile no está saneada, un atacante puede explotar una vulnerabilidad de inclusión de archivos locales","source":"nvd"}],"published":"2021-02-18T14:25:14.352Z","modified":"2026-09-10T03:49:14.227Z","severity":{"scorer":"snyk","scheme":"CVSS: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","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS: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","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"6.8.8","status":"affected"}],"product":"pimcore/pimcore","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.8.8"}],"ecosystem":"Packagist","package":"pimcore/pimcore","purl":"pkg:composer/pimcore/pimcore","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.8.8"}],"vendor":"pimcore","product":"pimcore","cpe":"cpe:2.3:a:pimcore:pimcore:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-PHP-PIMCOREPIMCORE-1070132","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pimcore/pimcore/blob/v6.7.2/bundles/AdminBundle/Controller/Reports/CustomReportController.php%23L454","tags":["broken-link","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pimcore/pimcore/commit/1786bdd4962ee51544fad537352c2b4223309442","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23340","tags":["advisory"],"sources":["ghsa"]}],"credits":["Daniele Scanu"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23340","url":"https://www.cve.org/CVERecord?id=CVE-2021-23340","licence":"CVE Terms of Use","modified":"2024-09-17T03:43:54.860Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h7f9-cvh5-qw7f","url":"https://github.com/advisories/GHSA-h7f9-cvh5-qw7f","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:14.227Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23340","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23340","licence":"Public domain","modified":"2026-06-17T03:38:35.163Z"}],"updatedAt":"2026-11-25T22:57:59.986Z","epss":{"score":0.01332,"percentile":0.71936,"date":"2026-12-01T12:00:22.000Z"}}