CVE-2024-20758 Adobe Commerce | Improper Input Validation (CWE-20)
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.
| Package | Affected | Fixed in |
|---|---|---|
magento/community-edition Packagist | All versions | None |
magento/community-edition Packagist | All versions | None |
magento/community-edition Packagist | From 2.4.4-p1 | 2.4.4-p8 |
magento/community-edition Packagist | From 2.4.4-p1 | 2.4.4-p8 |
magento/community-edition Packagist | From 2.4.5-p1 | 2.4.5-p7 |
magento/community-edition Packagist | From 2.4.5-p1 | 2.4.5-p7 |
7 more packages
magento/community-edition Packagist | From 2.4.6-p1 | 2.4.6-p5 |
magento/community-edition Packagist | From 2.4.6-p1 | 2.4.6-p5 |
magento/community-edition Packagist | From 2.4.7-beta1 | 2.4.7 |
magento/community-edition Packagist | From 2.4.7-beta1 | 2.4.7 |
magento Bitnami | From 2.4.7-alpha0 | 2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 |
magento/project-community-edition Packagist | All versions to 2.0.2 | None |
magento/project-community-edition Packagist | All versions to 2.0.2 | None |
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.
Other vulnerabilities in Adobe Commerce
- CVE-2026-75650 Adobe Commerce and Magento Improper Neutralization of Special Elements Used in a Template Engine
- CVE-2024-34102 Adobe Commerce and Magento Open Source Improper Restriction of XML External Entity Reference (XXE)
- CVE-2022-24086 Adobe Commerce and Magento Open Source Improper Input Validation
- CVE-2026-48356 Adobe Commerce and Magento Unrestricted Upload of File with Dangerous Type
- CVE-2026-71362 Adobe Commerce and Magento Incorrect Authorization Vulnerability
Sources
Also known as BIT-magento-2024-20758, GHSA-wh4m-6rh3-p4rq.