CVE-2024-20758 Adobe Commerce | Improper Input Validation (CWE-20)

Critical 9.0 Published Updated

Attackers can achieve arbitrary code execution on the filesystem via improper input validation in Adobe Commerce without user interaction.

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

What is CVE-2024-20758?

CVE-2024-20758 is a critical code injection vulnerability in Adobe Commerce, published on 10 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Adobe Commerce versions 2.4.6-p4, 2.4.5-p6, 2.4.4-p7, 2.4.7-beta3 and earlier are affected by an Improper Input Validation vulnerability that could result in arbitrary code execution on the underlying filesystem. Exploitation of this issue does not require user interaction, but the attack complexity is high.

Weakness: CWE-20

Which versions are affected by CVE-2024-20758?

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

PackageAffectedFixed in
magento/community-edition PackagistAll versionsNone
magento/community-edition PackagistAll versionsNone
magento/community-edition PackagistFrom 2.4.4-p12.4.4-p8
magento/community-edition PackagistFrom 2.4.4-p12.4.4-p8
magento/community-edition PackagistFrom 2.4.5-p12.4.5-p7
magento/community-edition PackagistFrom 2.4.5-p12.4.5-p7
7 more packages
magento/community-edition PackagistFrom 2.4.6-p12.4.6-p5
magento/community-edition PackagistFrom 2.4.6-p12.4.6-p5
magento/community-edition PackagistFrom 2.4.7-beta12.4.7
magento/community-edition PackagistFrom 2.4.7-beta12.4.7
magento BitnamiFrom 2.4.7-alpha02.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8
magento/project-community-edition PackagistAll versions to 2.0.2None
magento/project-community-edition PackagistAll versions to 2.0.2None

Products include Adobe Commerce, Adobe Magento.

How do I fix CVE-2024-20758?

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

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-20758 being exploited?

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

All Adobe Commerce vulnerabilities

Sources

Also known as BIT-magento-2024-20758, GHSA-wh4m-6rh3-p4rq.

Is CVE-2024-20758 in your software?

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

Check your SBOMs for free