Notes · Oleksandr Osadchyi · Updated · 15 min read

Magento 2 hacked after patch: the security check to run once the 2026 patches are in

If your Magento 2 store was online between September 4, 2026 and the day the StyleSmuggler hotfix went in, the patch closed the door and did not look inside. The same goes for PolyShell in the spring and for BlockStrap, the October bypass of the September fix. This note lists the places where attackers leave something behind on a Magento server, with one read-only check per place that your developer can run in an afternoon, and what to change afterwards.

I am Oleksandr Osadchyi, an ex-Magento 2 core engineer and Adobe Certified Master, Adobe Commerce Architect, with 13 years on Magento stores. I also hold Adobe Commerce Developer and Adobe Commerce Business Practitioner. My commits are in the public magento/magento2 repository.

The 2026 bulletins in one table

Adobe numbers its Commerce security bulletins APSB. The column "login needed" tells you whether the hole could be used by anyone on the internet or only by someone who already had an account. The last column shows what Adobe wrote in the bulletin and, where it differs, what Sansec, a company that scans stores for malware, reported.

DateBulletinTop CVSSLogin neededAttacks reported
Mar 10, 2026APSB26-058.7 (19 CVEs)Yes, all 19Adobe: none known
May 12, 2026APSB26-498.7 (15 CVEs)Yes, all 15Adobe: none known
Jul 14, 2026APSB26-739.6, CVE-2026-48356 (PolyShell)NoAdobe: none known. Sansec: mass uploads since March 19
Aug 11, 2026APSB26-929.1, CVE-2026-71362NoAdobe: none known
Sep 7, 2026APSB26-14610.0, CVE-2026-75650 (StyleSmuggler)NoAdobe: exploited in the wild. Sansec: since September 4
Sep 8, 2026APSB26-1389.3, CVE-2026-76200 and 76201NoAdobe: none known
Oct 13, 2026APSB26-15310.0, CVE-2026-103849 (BlockStrap)NoAdobe: none known. Sansec: none seen at publication

The table is not Adobe's full 2026 list; it holds the bulletins I read on Adobe's own pages. Since the August bulletin Adobe may give one CVE number to several internally found issues of the same severity, so CVE counts across bulletins do not compare one to one. Five of the seven needed no login. Three of those scored 9.6 or 10.0 out of 10 and let a stranger run code on your server; they are what this note is about.

Why the days before the patch matter

A security patch changes the code so that a trick stops working. It does not read the disk, the database or the process list for what the trick already did. Sansec, writing about StyleSmuggler:

Patching closes the hole but does not clean a store that was already hit.

Tenable's FAQ on the same flaw says it the same way: Patching alone does not remediate an existing compromise. Below is how much time each of the three big 2026 holes was open before a fix existed.

StyleSmuggler: three days in the open

Sansec's timeline, in UTC:

Adobe's bulletin:

Adobe is aware of CVE-2026-75650 being exploited in the wild.

Affected are Adobe Commerce 2.4.4 to 2.4.9, Magento Open Source 2.4.6 to 2.4.9 and B2B 1.3.3 to 1.5.3. One victim Sansec examined ran 2.4.6-p15, a fully patched release on that day. Between September 4 and September 7 there was no patch to install, so a store that always patches on time could still be hit. In plain words, the attacker placed PHP code into a property of an email template, the styles field, and the store ran it when it rendered a failed-payment email. A variant went through the PayPal endpoint and a file under var/report. No login was needed, and moving sessions to Redis or the database did not stop it. Sansec reported several victims and published no count, so I will not give you one. BleepingComputer reported a second, unrelated attacker dropping a 485-byte PHP web shell whose control server posed as an NTP time server.

PolyShell: four months between the first attacks and the backport

Sansec's PolyShell timeline:

Adobe's APSB26-73 says Adobe is not aware of any exploits in the wild. Both statements are on the record; I show both and leave the judgement to you. The practical reading for a store owner is simple: if a store on 2.4.8 or older was online in spring 2026 and got the fix in July, there were about four months in which a file could have been uploaded, and the July patch did not remove files.

BlockStrap: the fix needed a fix

APSB26-153 of October 13 fixes CVE-2026-103849, CVSS 10.0, no login, plus a 9.8 in the B2B module. Sansec describes it as a gap left by the StyleSmuggler fix in the same email template engine and reproduced four routes to code execution on October 14. Its article says no exploitation had been observed at that point; whether that changed later I did not verify. Both fixes are needed: keep VULN-39341 and install the October 2026 release or the isolated patch. A plain Composer install of an older release stays open. So a store that was "patched in September" still has a 10.0 hole unless the October fix went in too.

The same pattern in 2024 and 2025

Three years, three flaws, the same lesson. The patch stops new break-ins. What came in before it is still there until someone looks.

Where attackers stay, and how to check each place

Every check below is read-only. Run them as the user that owns the Magento files; the ones with sudo need root. Each place comes from Sansec's write-ups of the campaigns above or from Adobe's own notes. If a check finds something, do not delete it yet. Copy it with its timestamps (cp -a) to a folder outside the web root, write down the time, and only then clean. A deleted file cannot tell you when it arrived or what else came with it.

1. Cron jobs and the cron spool

The StyleSmuggler implant was restarted by cron entries at 13,43 * * * * and 57,27 * * * *. Sansec notes that one build wrote straight to the cron spool, so crontab -l for the web user came back clean while the job ran. Read the spool and /etc/cron.d directly, and the systemd timers:

sudo ls -la /var/spool/cron/crontabs/ /etc/cron.d/
sudo grep -rn . /var/spool/cron/crontabs/ /etc/cron.d/
systemctl list-timers --all

On RHEL-family systems the spool is /var/spool/cron/. Every line should be a job your developer can name: Magento's bin/magento cron:run, backups, log rotation. A job that runs a file from /tmp, /dev/shm or a hidden folder in the web user's home is the finding. Magento's own cron_schedule table is a different thing; it lists Magento's internal jobs, and the attackers used the system cron.

2. Processes dressed as the kernel

Sansec and Tenable documented StyleSmuggler processes named [kworker/u:8:0], fc-cache and chronyd, with the implant at ~/.local/share/.gvfsd/gvfsd-user. CosmicSting-era backdoors used names like [kswapd0] and a file at .config/htop/defunct.dat. A real kernel thread runs as root, has parent PID 2 and has no executable file behind it.

ps -eo pid,ppid,user,etime,cmd | grep -E 'kworker|kswapd|fc-cache|chronyd' | grep -v grep
sudo ls -l /proc/<pid>/exe /proc/<pid>/cwd
sudo find / -xdev \( -path '*/.local/share/.gvfsd*' -o -path '*/.config/htop/defunct.dat' \) 2>/dev/null

A "kernel" process owned by the web user, with a parent other than 2 and an exe link into a home folder, is an implant. The find should print nothing.

3. Changed core files

Sansec found a cookie-triggered remote include in vendor/magento/framework/App/View.php. In 2022 the TrojanOrders attackers hid a remote access tool in health_check.php, which is a real Magento file under pub. Four lines cover the patch state and the two known spots:

vendor/bin/magento-patches status | grep -i VULN-39341
grep -c resolveDeferredDirectives vendor/magento/framework/Filter/Template.php
grep -nE '\$_COOKIE|eval\(|base64_decode' vendor/magento/framework/App/View.php
find vendor/magento pub -name '*.php' -newer composer.lock

The first line must show the StyleSmuggler hotfix as applied. The second is Sansec's marker for the October BlockStrap fix: the fixed template engine contains that method, so a 0 means the October fix is missing. The third prints nothing on a clean file. The fourth lists PHP files changed after the last Composer install; a deploy adds noise here, so every file needs a reason. The thorough version is to install the store's own composer.lock into an empty folder and compare the two vendor trees with diff -rq. Sansec also names one line in var/log/exception.log as a trace left on attacked stores:

grep -c 'Map file provided does not exist' var/log/exception.log

4. A skimmer in the configuration table

On a StyleSmuggler victim Sansec found a base64-encoded skimmer in core_config_data under the path design/head/includes. That is the "Scripts and Style Sheets" field under Content, Design, Configuration, HTML Head, and whatever is in it goes into the head of every page of the store. The footer fields next to it work the same way.

SELECT config_id, scope, scope_id, path, updated_at, LEFT(value, 100) AS value_start
FROM core_config_data
WHERE path LIKE 'design/head/%'
   OR path LIKE 'design/footer/%'
   OR value LIKE '%<script%'
   OR value LIKE '%base64%'
   OR value LIKE '%atob(%'
   OR value LIKE '%eval(%';

A Google Tag Manager snippet you recognise is fine. A long base64 string, atob(, eval( or a script loaded from a domain nobody can name is the finding. updated_at tells you when the row changed.

5. PHP where only images belong

pub/media is for uploads and should hold no PHP at all. StyleSmuggler left web shells in pub/media/catalog/product/cache/ss_<hex>/. PolyShell left polyglot shells, image files that are also PHP, in pub/media/custom_options/, and Sansec notes they stay on disk even when execution is blocked. The same campaign copied accesson.php into assets/images/ folders under var, lib, app, vendor, pub and generated. The first two find lines are Sansec's own; the rest are mine.

find pub/media/custom_options/ -type f ! -name '.htaccess'
find / -xdev -name 'accesson.php' 2>/dev/null
find pub/media -type f \( -iname '*.php' -o -iname '*.phtml' -o -iname '*.phar' -o -iname '*.php[0-9]' -o -iname '*.phps' \)
find pub/media/catalog/product/cache -maxdepth 1 -type d -name 'ss_*'
find . -path '*/assets/images/*' -name '*.php'
grep -rl --include='*.jpg' --include='*.png' --include='*.gif' --include='*.svg' '<?php' pub/media

custom_options holds files customers attach to orders through a file-type product option; if you sell nothing with such an option, it should be empty. Real product cache folders have hex names with no prefix, so ss_ is the attacker's. The last line finds image files with PHP inside.

6. JavaScript in CMS blocks and pages

CosmicSting attackers edited CMS blocks to add skimmers. PolyShell's loaders sat in CMS pages and blocks and replayed their payload from the visitor's localStorage.

SELECT block_id, identifier, title, update_time
FROM cms_block
WHERE content LIKE '%<script%' OR content LIKE '%localStorage%'
   OR content LIKE '%atob(%' OR content LIKE '%eval(%'
ORDER BY update_time DESC;

SELECT page_id, identifier, title, update_time
FROM cms_page
WHERE content LIKE '%<script%' OR content LIKE '%localStorage%'
   OR content LIKE '%atob(%' OR content LIKE '%eval(%'
ORDER BY update_time DESC;

A <script> tag in a block is not wrong by itself; marketing teams put widgets there. A script that reads localStorage, decodes base64 or loads from a domain nobody can name is the finding, and update_time says when it changed.

7. Integration tokens and admin users

Sansec wrote it for CosmicSting and again for SessionReaper: API integration tokens survive key rotation. An integration token never expires, so one created in June still works in November. SessionReaper attackers also exported the admin user table. I have not seen a report that these campaigns created admin accounts, but the list costs one query.

SELECT integration_id, name, email, status, setup_type, created_at, updated_at
FROM integration ORDER BY created_at DESC;

SELECT token_id, user_type, admin_id, customer_id, consumer_id, revoked, created_at
FROM oauth_token WHERE type = 'access' AND revoked = 0 ORDER BY created_at DESC;

SELECT user_id, username, email, is_active, created, modified, logdate
FROM admin_user ORDER BY created DESC;

In the admin the same lists are under System, Extensions, Integrations and under System, Permissions, All Users. Every integration should match a running system, every admin a person who still works with you. How these tokens are issued, and why a rule on /admin does not cover the token endpoint under /rest, is in Magento admin API token security.

Rotate credentials at the source

Adobe's knowledge base article for APSB26-146 says patching is not enough and asks you to rotate the encryption key and everything it protected:

Rotating the encryption key alone does not invalidate credentials that may already be exposed.

Sansec says the same from the other side:

Rotating the encryption key on its own does not invalidate anything an attacker already read.

Here is why "at the source" matters. The key in app/etc/env.php encrypts the secrets stored in the database. Someone who read env.php and the database has the key and the encrypted values, so they have the plain values. A new Magento key re-encrypts the same plain values, and your payment provider still accepts them. The new secret has to be issued where it lives, in the payment gateway's dashboard, in the carrier account, at the tax service, and then entered into Magento. That is the gap Adobe closed in 2024 with hotfix AC-12485 after CosmicSting. Adobe's list for 2026:

Do it after the cleanup, not before. A new password typed while a backdoor is still on the server is a new password the attacker reads.

Tools that cost nothing

When to call a developer

The order of work is the same every time: keep copies of what was found, clean, install both fixes from the October release or the isolated patches, rotate the credentials at the source, then watch the logs and the checks above for a few days. The patch goes to staging first, like any other release.

How I do this for stores

The scope is fixed before work starts. You send SSH access to the server and an admin account, or your developer runs the checks above and sends me the output. I do the compromise check, the cleanup of what it finds, the list of credentials for you to reissue with your providers, and the patch to a release with both the StyleSmuggler and the BlockStrap fixes, on staging first. You get an estimate in hours before I touch anything. I bill by the hour, you pay only for hours worked, and my rate is on the pricing page. Write to alex@osadchyi.dev.

FAQ

I installed the StyleSmuggler hotfix in September. Is my store clean?

The hotfix closed the hole from the time it was installed. It did not remove anything placed between September 4, when Sansec confirmed the first exploitation, and your install date, and it did not close BlockStrap, the October bypass of the same engine. Run the seven checks above, and make sure the October 2026 release or its isolated patch is in as well.

How do I know if my Magento 2 store has been hacked?

Not from the storefront. Sansec's figure is that 65% of malware hides on the server in PHP, the database or processes. The places documented in the 2024 to 2026 campaigns are the system cron, disguised processes, modified core files, the design/head/includes config row, PHP under pub/media, JavaScript in CMS blocks and pages, and integration tokens. Each has a read-only check in this note. A clean result on all seven, plus both 2026 fixes applied, is as close to "clean" as a check gets.

Does changing the encryption key remove the attacker?

No. Adobe and Sansec both say it in their own words: the new key does not invalidate credentials an attacker already read, and integration tokens survive key rotation. Clean first, then issue new secrets at the payment, shipping and tax providers, reset every admin password, recreate the integrations and change the SSH and database credentials.

Is Adobe's Security Scan Tool enough?

It is a good start and it costs nothing, but it scans from the outside, and Sansec notes that it looks for issues in the core Magento application. A web shell in pub/media, a cron entry or a fake kernel process is not visible from outside. Use it, and have someone run the server-side checks too.

My store is on 2.4.5. Can I still patch?

Adobe's StyleSmuggler bulletin lists Adobe Commerce 2.4.4 to 2.4.9 and Magento Open Source 2.4.6 to 2.4.9. Releases outside that range are out of Adobe's support, so Adobe ships nothing for them. Sansec's timeline records that Scandiweb published a backport for 41 unsupported versions on September 8; your developer decides whether to trust a third-party patch. Which releases still get patches from Adobe, and until when, is in Magento 2 end of support dates.