CVE-2021-23340 Local File Inclusion

High 7.1 Published Updated

An authenticated attacker can exploit a local file inclusion vulnerability in the CustomReportController to read arbitrary files from the server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-23340?

CVE-2021-23340 is a high-severity path traversal vulnerability in Pimcore Pimcore, published on 18 Feb 2021. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-22

Which versions are affected by CVE-2021-23340?

2 open source packages ship an affected version, including pimcore/pimcore. It affects 1 product.

PackageAffectedFixed in
pimcore/pimcore PackagistAll versions6.8.8
pimcore/pimcore PackagistAll versions6.8.8

Products include Pimcore Pimcore.

How do I fix CVE-2021-23340?

Upgrade pimcore/pimcore to 6.8.8 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-23340 being exploited?

There is no known exploitation of CVE-2021-23340 in the wild and no public exploit code.

All Pimcore Pimcore vulnerabilities

Sources

Also known as GHSA-h7f9-cvh5-qw7f, SNYK-PHP-PIMCOREPIMCORE-1070132.

Is CVE-2021-23340 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free