CVE-2023-39528 PrestaShop vulnerable to file reading through path traversal

Medium 6.8 Published Updated

Attackers can read arbitrary files on the server via the displayAjaxEmailHTML method in PrestaShop, exposing sensitive data.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-39528?

CVE-2023-39528 is a medium-severity path traversal vulnerability in Prestashop Prestashop, published on 7 Aug 2023. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

PrestaShop is an open source e-commerce web application. Prior to version 8.1.1, the `displayAjaxEmailHTML` method can be used to read any file on the server, potentially even outside of the project if the server is not correctly configured. Version 8.1.1 contains a patch for this issue. There are no known workarounds.

Weakness: CWE-22

Which versions are affected by CVE-2023-39528?

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

PackageAffectedFixed in
prestashop/prestashop PackagistAll versions8.1.1
prestashop/prestashop PackagistAll versions8.1.1

Products include Prestashop Prestashop.

How do I fix CVE-2023-39528?

Upgrade prestashop/prestashop to 8.1.1 or later.

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

Is CVE-2023-39528 being exploited?

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

All Prestashop Prestashop vulnerabilities

Sources

Also known as GHSA-hpf4-v7v2-95p2.

Is CVE-2023-39528 in your software?

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

Check your SBOMs for free