# CVE-2021-23340: Local File Inclusion

- Severity: High 7.1 (CVSS:3.1, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.33%, higher than 71% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-18T14:25:14.352Z
- Modified: 2026-09-10T03:49:14.227Z
- Also known as: GHSA-h7f9-cvh5-qw7f, SNYK-PHP-PIMCOREPIMCORE-1070132
- Weaknesses: CWE-22
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- pimcore/pimcore: from unspecified before 6.8.8
- pimcore/pimcore (Packagist): before 6.8.8
- pimcore pimcore: before 6.8.8

## Every score

- snyk: CVSS:3.1 7.1 High `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`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N`
- NVD: CVSS:2.0 5.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-PHP-PIMCOREPIMCORE-1070132> (exploit, patch, third-party-advisory, web)
- <https://github.com/pimcore/pimcore/blob/v6.7.2/bundles/AdminBundle/Controller/Reports/CustomReportController.php%23L454> (broken-link, third-party-advisory, web)
- <https://github.com/pimcore/pimcore/commit/1786bdd4962ee51544fad537352c2b4223309442> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23340> (advisory)

## Sources

- CVE List: [CVE-2021-23340](https://www.cve.org/CVERecord?id=CVE-2021-23340), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-h7f9-cvh5-qw7f](https://github.com/advisories/GHSA-h7f9-cvh5-qw7f), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-23340](https://nvd.nist.gov/vuln/detail/CVE-2021-23340), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23340 · Whole record: https://cve.day/CVE-2021-23340.json · Rebuilt by cve.day 2026-11-25T22:57:59.986Z
