AZSecureby Azguards Technolabs

Exploited vulnerabilities · Magento

TrojanOrders (CVE-2022-24086)

Attackers hide template code in checkout fields, and Magento runs it on the server while processing the order.

Actively exploited (CISA KEV)CVE-2022-24086CVSS 9.8 (critical)

Free website scan

Is your store serving malware right now?

Checks home, product, cart and checkout pages, blocklists, exposed files and spam shown only to Google. Takes about a minute.

How TrojanOrders works

TrojanOrders is the name researchers gave to attacks on CVE-2022-24086. The attacker places an order with template code tucked into the name or address. When Magento processes that order, for example to build the confirmation e-mail, it runs the code on your server.

Adobe released an emergency patch in bulletin APSB22-12. Researchers then found a way around it, so Adobe followed up days later with a second patch (MDVA-43443) that has to be applied on top of the first (MDVA-43395). CISA added CVE-2022-24086 to its known exploited list two days after the bulletin, and Sansec reported a large new wave of TrojanOrders attacks in late 2022.

What attackers do with it

  • Code running on your server, used to install backdoors and payment skimmers.

Signs of a TrojanOrders compromise

  • Orders, quotes or customer records with template code such as {{ ... }} in the name, address or e-mail.
  • New PHP files, or changed core files, dated around those orders.

How to fix TrojanOrders

  1. Move to a supported Magento release. The 2.3 line and early 2.4 releases get no security fixes at all now, for this or anything else.
  2. Until you can, apply both of Adobe's patches, MDVA-43395 first and then MDVA-43443.
  3. Search orders and quotes for template code in address fields, then check the server for backdoors.

Check if your Magento site is exposed

The free scan estimates your Magento version from the outside and checks checkout for skimmers, but it can't confirm the patches. A deep scan reads the exact version, searches the database for template code in orders and looks for backdoors.

Patched late, or not sure when?

A deep scan checks your installed version against this advisory and looks for what attackers leave behind, with read-only access. An Azguards engineer signs off the report.

Common questions about TrojanOrders

Is TrojanOrders still a threat in 2026?

For stores on Magento 2.3 or an early 2.4 release, yes. Those versions get no security fixes any more, and working attack code for this flaw has been public for years.

How can I tell if someone tried it on my store?

Search your orders and quotes for {{ in the name and address fields. A failed attempt does no harm by itself, but it tells you your store is on someone's list.

Sources

Reviewed by Ali, Azguards security team. Last updated 9 Nov 2026.