CVE-2024-39406 Adobe Commerce | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)

Medium 6.8 Published Updated

An admin attacker can exploit a path traversal flaw in Adobe Commerce to read arbitrary files outside the restricted directory without user interaction.

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

What is CVE-2024-39406?

CVE-2024-39406 is a medium-severity path traversal vulnerability in Adobe Commerce, published on 14 Aug 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Adobe Commerce versions 2.4.7-p1, 2.4.6-p6, 2.4.5-p8, 2.4.4-p9 and earlier are affected by an Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability that could lead to arbitrary file system read. An admin attacker could exploit this vulnerability to gain access to files and directories that are outside the restricted directory. Exploitation of this issue does not require user interaction and scope is changed.

Weakness: CWE-22

Which versions are affected by CVE-2024-39406?

10 open source packages ship an affected version, including magento/community-edition. It affects 2 products.

PackageAffectedFixed in
magento/community-edition PackagistAll versionsNone
magento/community-edition PackagistAll versionsNone
magento/community-edition PackagistAll versions2.4.4-p10
magento/community-edition PackagistAll versions2.4.4-p10
magento/community-edition PackagistFrom 2.4.5-p12.4.5-p9
magento/community-edition PackagistFrom 2.4.5-p12.4.5-p9
4 more packages
magento/community-edition PackagistFrom 2.4.6-p12.4.6-p7
magento/community-edition PackagistFrom 2.4.6-p12.4.6-p7
magento/community-edition PackagistFrom 2.4.7-p12.4.7-p2
magento/community-edition PackagistFrom 2.4.7-p12.4.7-p2

Products include Adobe Commerce, Adobe Magento.

How do I fix CVE-2024-39406?

Upgrade magento/community-edition to a fixed version for your release line: 2.4.4-p10, 2.4.5-p9, 2.4.6-p7 or 2.4.7-p2.

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

Is CVE-2024-39406 being exploited?

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

All Adobe Commerce vulnerabilities

Sources

Also known as GHSA-6pxh-2557-5cj5.

Is CVE-2024-39406 in your software?

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

Check your SBOMs for free