What is Adobe Commerce / Magento?
Adobe Commerce (formerly Magento Commerce) and Magento Open Source are the world's most widely used open-source e-commerce platforms, powering hundreds of thousands of online stores globally. The platform handles product catalogs, shopping carts, checkout flows, payment processing, and order management. Because Magento stores process credit card data and contain customer PII, they are a perennial target for payment card skimming (Magecart) and data theft attacks.
Overview
CVE-2022-24086 is a pre-authentication remote code execution vulnerability in Adobe Commerce and Magento Open Source caused by improper input validation that enables server-side template injection. An unauthenticated attacker can inject malicious template directives through the checkout process, resulting in arbitrary PHP code execution on the server. CVSS 9.8 (Critical). Adobe issued an emergency out-of-band patch on February 13, 2022 — outside their normal patch cycle — indicating exploitation was already occurring. CISA added this to KEV just two days later, confirming active in-the-wild attacks.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
| Adobe Commerce | 2.3.3-p1 – 2.3.7-p2 | 2.3.7-p3 |
| Adobe Commerce | 2.4.0 – 2.4.3-p1 | 2.4.3-p2 |
| Magento Open Source | 2.3.3-p1 – 2.3.7-p2 | 2.3.7-p3 |
| Magento Open Source | 2.4.0 – 2.4.3-p1 | 2.4.3-p2 |
Technical Details
The vulnerability (CWE-20 — improper input validation) is a server-side template injection in the Magento checkout/order processing pipeline. Magento uses template rendering for email notifications, invoices, and order confirmations. Certain input fields — particularly in address or order comment fields during guest checkout — were passed to template rendering functions without sufficient sanitization.
An attacker can inject template directives that execute arbitrary PHP code:
- Using Magento's built-in template variables and filter syntax
- Template directives like
andcan reference PHP class methods - Carefully crafted payloads can invoke
exec()or similar OS command execution functions
The attack is achievable by any visitor to the store's checkout page — no customer account or prior authentication is needed (guest checkout is enabled on most stores).
Discovery
Adobe stated they were "aware that CVE-2022-24086 is being exploited in the wild in very limited attacks" in their advisory — language indicating targeted attacks had already been observed before the patch was published.
Exploitation Context
Magento/Adobe Commerce stores are targeted constantly by the Magecart group ecosystem, which implants JavaScript payment card skimmers. CVE-2022-24086 enables a more direct attack:
- Webshell deployment: Upload a PHP backdoor to a web-accessible directory for persistent access
- Payment skimmer injection: Modify Magento templates or JavaScript to inject card skimming code
- Database access: Execute SQL queries to extract customer payment data, credentials, and PII
- Supply chain attacks: Modify the store's JavaScript assets to distribute malware to customers
The emergency out-of-band patch — unusual for Adobe — signals that attacks were actively targeting high-value stores at the time of disclosure.
Remediation
- Apply patch immediately: Upgrade to Magento 2.3.7-p3 or 2.4.3-p2 (or later). Adobe also released isolated patches for older supported versions in APSB22-12.
- Enable Magento security patching: Subscribe to Adobe security notifications and apply security patches on the same-day cadence for Critical/Emergency bulletins.
- Web Application Firewall: Deploy a WAF with Magento-specific rules blocking template injection patterns in checkout fields.
- Disable guest checkout if unused: Reduces the attack surface for pre-auth vectors.
- Monitor for webshells and file changes: Use file integrity monitoring on the Magento root directory. Unexpected PHP files or modified JavaScript assets may indicate compromise.
- Review recent orders for suspicious data: If the patch was delayed, examine order logs around the vulnerability window for anomalous entries containing template syntax.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2022-24086 |
| Vendor / Product | Adobe — Commerce and Magento Open Source |
| NVD Published | 2022-02-16 |
| NVD Last Modified | 2025-10-23 |
| CVSS 3.1 Score | 9.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Severity | CRITICAL |
| CWE | CWE-20 find similar ↗ |
| CISA KEV Added | 2022-02-15 |
| CISA KEV Deadline | 2022-03-01 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2022-02-13 | Adobe released emergency out-of-band patch (APSB22-12) |
| 2022-02-15 | Added to CISA Known Exploited Vulnerabilities catalog (2 days after patch) |
| 2022-02-16 | CVE formally published |
| 2022-03-01 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2022-24086 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| Adobe Security Bulletin APSB22-12 | Vendor Advisory |