Malware & Threats

Magento Vulnerability Exploited to Deploy Persistent Backdoor

Attackers are exploiting a recent Magento vulnerability to deploy a persistent backdoor on ecommerce websites.

Attackers are exploiting a recent Magento vulnerability to deploy a persistent backdoor on ecommerce websites.

Threat actors are exploiting a critical vulnerability in Magento to inject a persistent backdoor into ecommerce websites, cybersecurity firm Sansec reports.

The issue, tracked as CVE-2024-20720 (CVSS score of 9.1), is described as an OS command injection flaw leading to arbitrary code execution without user interaction.

Adobe resolved the critical vulnerability in February 2024 in both Adobe Commerce and Magento, as part of its Tuesday Patch updates. However, it appears that there are websites that have yet to be updated and remain vulnerable to exploitation.

According to Sansec, threat actors have discovered a clever way to exploit CVE-2024-20720, using a crafted layout template in the database to inject XML code that can reinfect Magento servers even after a manual fix.

“Attackers combine the Magento layout parser with the beberlei/assert package (installed by default) to execute system commands. Because the layout block is tied to the checkout cart, this command is executed whenever /checkout/cart is requested,” Sansec explains.

As part of the observed attacks, the backdoor is added to the automatically generated content management system (CMS) controller, ensuring the backdoor is periodically reinjected and providing persistent remote code execution via POST commands.

Advertisement. Scroll to continue reading.

The threat actors have employed the mechanism to inject a fake Stripe payment skimmer and steal payment data from the compromised web stores.

Users are advised to update to Magento versions 2.4.6-p4, 2.4.5-p6 or 2.4.4-p7 as soon as possible, and to scan their websites for any signs of a malware infection.

Related: Patch Tuesday: Adobe Warns of Critical Flaws in Widely Deployed Software

Related: CISA Warns of Attacks Exploiting Adobe Acrobat Vulnerability

Related: Vendors Actively Bypass Security Patch for Year-Old Magento Vulnerability

Related Content

Malware & Threats

Mistic is used by Woodgnat, an initial access broker working with Qilin, Interlock, Rhysida, Akira, 8Base, and Black Basta.

Malware & Threats

The stealthy Python-based backdoor framework deploys a persistent Windows implant likely designed for espionage.

Malware & Threats

The malware provides remote access and control of infected devices and maintains post-patching persistence.

Malware & Threats

Published through five accounts, the extensions appear part of a coordinated campaign based on shared C&C infrastructure.

Nation-State

The state-sponsored threat actor deployed kernel implants and passive backdoors enabling long-term, high-level espionage.

Malware & Threats

Used since at least 2019, DKnife has been targeting the desktop, mobile, and IoT devices of Chinese users.

Malware & Threats

The extensions were seen profiling users, reading cookie data to create unique identifiers, and executing payloads with browser API access.

Malware & Threats

PipeMagic, which poses as a ChatGPT application, is a modular malware framework that provides persistent access and flexibility.

Copyright © 2026 SecurityWeek ®, a Wired Business Media Publication. All Rights Reserved.

Exit mobile version