BlockStrap: Magento and Adobe Commerce RCE (CVE-2026-103849)
by Sansec Forensics Team
Published in Threat Research − October 15, 2026
BlockStrap (CVE-2026-103849) is a CVSS 10.0 Magento and Adobe Commerce flaw that gives unauthenticated attackers remote code execution. Adobe fixed it on October 13 in APSB26-153 but requires a manual patch, while new installs remain vulnerable.

BlockStrap is the second critical break in Magento's email template engine in six weeks. It has the same CVSS 10.0 score as StyleSmuggler and the same impact: an unauthenticated attacker runs arbitrary PHP on the store server.
Adobe patch: CVE-2026-103849
Adobe published APSB26-153 on October 13. The most critical issue is BlockStrap, a template engine injection at CVSS 10.0, found by vozec.
| Product | Affected versions |
|---|---|
| Adobe Commerce | ≤ 2.4.9 |
| Adobe Commerce B2B | ≤ 1.5.3 |
| Magento Open Source | ≤ 2.4.9 |
Beware though!
- A plain Composer install still has the vulnerable base version, so apply the
2026-octrelease or Adobe's isolated patch. - BlockStrap and StyleSmuggler are separate fixes. You need both, so keep the September
VULN-39341hotfix in place as well.
Builds upon StyleSmuggler
BlockStrap is a second-pass directive injection, like StyleSmuggler. The September VULN-39341 hotfix signs trusted directives, but attacker-controlled data in a child template can still be signed and rescanned at the root level, where a smuggled {{block}} directive runs inside Magento's rendering. Adobe's October patch replaces that generic rescan with registered placeholders.
Four routes to code execution in 24 hours
The attack path is complex, but anyone with an AI agent can reverse-engineer the patch into working exploits in a relatively short time. That is why we question Adobe's priority 2 rating (patch within 30 days). StyleSmuggler went from a priority 1 hotfix to mass exploitation in three days, and BlockStrap is of similar complexity.
What merchants should do
Recall your team from vacation and start patching today. If you cannot patch within hours, Sansec Shield blocks BlockStrap at the HTTP layer, with rules live for all Shield stores. Run eComscan to flag the missing patch and check for backdoors.
FAQ
Is there a BlockStrap patch for Magento Open Source 2.4.6?
Not a public one from Adobe. Adobe's public October patches cover Magento Open Source 2.4.7-p10, 2.4.8-p5 and 2.4.9. The patches for 2.4.4-p18, 2.4.5-p17 and 2.4.6-p15 need an Adobe Commerce license. Happy Horizon published backported patches for these three versions. Sansec gives no warranty for these third-party patches. If you do not want to use them, upgrade to 2.4.7-p10 or later. Sansec Shield blocks BlockStrap attacks until you have patched or upgraded.
Adobe lists the downloads for each version in KB article ka-49323.
Is Mage-OS affected by BlockStrap?
Yes, up to Mage-OS 3.5.0. Mage-OS 3.6.0, released on October 14, contains Adobe's fix. The fix changes the framework and four modules, so upgrade the mage-os/product-community-edition metapackage.
composer require mage-os/product-community-edition 3.6.0 --no-update
composer update
Do I still need the September StyleSmuggler hotfix?
Yes. The October patch does not include the StyleSmuggler hotfix VULN-39341, and Adobe's patch registry does not list the hotfix as a prerequisite, so install it separately, before the October patch. With the hotfix in place, patch reports line offsets for Preview.php and AbstractTemplate.php, but the hunks still apply.
How do I check that the BlockStrap patch is applied?
Run grep -c resolveDeferredDirectives vendor/magento/framework/Filter/Template.php in the Magento root. The October patch adds this function, so 0 means the BlockStrap fix is missing. On Mage-OS, check vendor/mage-os/framework/Filter/Template.php instead.
Check the code even when your deploy reported no errors. Composer patch plugins can skip a hunk without failing the build, and deploy scripts that run patch ... || true ignore failed hunks. To check the StyleSmuggler hotfix, run vendor/bin/magento-patches -n status | grep "39341\|Status".
I applied the 2.4.8-p5 patch on October 13. Do I need to patch again?
Not for BlockStrap. Both versions of the 2.4.8-p5 patch contain the BlockStrap fix. The first version left out a change to EmailAddress.php for CVE-2026-91013, another bug in the same bulletin, which the 2.4.7-p10 and 2.4.9 patches did include. On October 14, Adobe put a corrected file in the zip download under the same name, 248p5-2026-10-001-CE.patch, and published the missing change separately as 248p5-2026-10-002-CE. If grep -c QUOTED_LOCAL_PART_PATTERN vendor/magento/framework/Validator/EmailAddress.php prints 0, apply 248p5-2026-10-002-CE.
What is the file 976bc24c08055e67a58cf491401c8b2f3d48ff55b8092f1ede196bac4756a228 in my Magento root?
It is an empty lock file that the October patch creates by mistake. To fix a path traversal bug, the patch names lock files after the SHA-256 hash of the lock name. 976bc24c… is the hash of /var/.regenerate.lock, and because var/ is part of the hashed name, Magento now writes the file to the Magento root. Every patched store gets the same file name.
Magento creates the file when bin/magento runs while var/.regenerate exists, for example during setup:upgrade. You can delete it or add it to .gitignore. The bug is reported as magento/magento2#41535.
Why does Adobe rate BlockStrap priority 2 when its CVSS score is 10.0?
Adobe said in the Magento community Slack that it reserves priority 1 for vulnerabilities it knows are being exploited. No BlockStrap attacks are known yet, so the patch got priority 2 and a 30-day window. Sansec reproduced four exploit routes within 24 hours of the patch, and attackers can do the same. Patch now instead of waiting 30 days.
My access logs show Twig payloads with registerUndefinedFilterCallback. Is that BlockStrap?
No. Those payloads target the Twig template engine, which Magento does not use. Requests with a callback to bxss.me come from the Acunetix vulnerability scanner.
Further reading
- Happy Horizon published backported APSB26-153 patches for Magento 2.4.4-p18 up to 2.4.9, split per Composer package for
cweagans/composer-patches. Sansec gives no warranty for these third-party patches.
Timeline
| Date | Event |
|---|---|
| 2026-09-07 | Adobe ships the StyleSmuggler hotfix (CVE-2026-75650, VULN-39341) |
| 2026-10-13 | Adobe publishes APSB26-153 fixing BlockStrap (CVE-2026-103849), CVSS 10.0, priority 2 |
| 2026-10-14 | Sansec reproduces four code-execution routes and deploys Shield protection |
| 2026-10-15 | Sansec publishes this analysis; no exploitation observed on live stores yet |
We will update this article when we identify mass attack waves.
Read more
- StyleSmuggler: Magento and Adobe Commerce 0-day RCE (CVE-2026-75650) under active attack
- PolyShell: unrestricted file upload in Magento and Adobe Commerce
- SessionReaper attacks have started, 3 in 5 stores still vulnerable
- SessionReaper, unauthenticated RCE in Magento & Adobe Commerce (CVE-2025-54236)
- Adobe patches critical Magento admin takeover via menu injection
In this article
Protect your store now!
Block all known Magento attacks, while you schedule the latest critical patch until a convenient moment. No more downtime and instability from rushed patching.
Get Sansec ShieldScan your store now
for malware & vulnerabilities
eComscan is the most thorough security scanner for Magento, Adobe Commerce, Shopware, WooCommerce, Sylius and many more.
Learn more