Magento StyleSmuggler — Unauthenticated RCE via Email Template Preview (CVE-2026-75650 / VULN-39341)
Published: 2026-11-25 • Researcher: dinosn (Nicolas Krassas) — lab/PoC author; Fortbridge (StyleSmuggler research); Adobe PSIRT (VULN-39341 / APSB26-146)
Exploitation signals
Confirmed exploited in the wild. Added to CISA KEV 2026-09-08. Federal remediation deadline 2026-09-11.
EPSS 34.7% · 99th percentile
- Severity
- Critical
- CVE
- CVE-2026-75650 (Adobe VULN-39341, APSB26-146)
- Category
- web
- Affected product
- Adobe Commerce / Magento Open Source (Magento 2 email template and report subsystems)
- Affected versions
- Not enumerated in the supplied CVE data (empty ranges; product listed only as adobe/commerce). The lab reproduces on Magento Open Source 2.4.9 at Git revision 755e34dd689021c5165db9d35ecff74f7dc51527; confirm the exact Commerce edition and version against Adobe bulletin APSB26-146 (see references)
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-75650
- https://github.com/dinosn/cve-2026-75650-magento-validation-lab
- https://helpx.adobe.com/security/products/magento/apsb26-146.html
- https://experienceleague.adobe.com/en/docs/commerce-knowledge-base/kb/announcements/commerce-apsb26-146
- https://repo.magento.com/patch/VULN-39341-composer-patches.zip
- https://fortbridge.co.uk/research/stylesmuggler-magento-unauthenticated-rce/
- https://github.com/fortbridge/stylesmuggler
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-09-12 |
| Author / Researcher | dinosn (Nicolas Krassas) — lab/PoC author; Fortbridge (StyleSmuggler research); Adobe PSIRT (VULN-39341 / APSB26-146) |
| CVE / Advisory | CVE-2026-75650 (Adobe VULN-39341, APSB26-146) |
| Category | web |
| Severity | Critical |
| CVSS Score | 10.0 (per NVD/CVE record; vector not published in the supplied source data — see references) |
| Status | PoC |
| Tags | RCE, Magento, Adobe Commerce, template-injection, CWE-94, unauthenticated, GraphQL, PHP-include, error-report-poisoning, StyleSmuggler |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Adobe Commerce / Magento Open Source (Magento 2 email template and report subsystems) |
| Versions Affected | Not enumerated in the supplied CVE data (empty ranges; product listed only as adobe/commerce). The lab reproduces on Magento Open Source 2.4.9 at Git revision 755e34dd689021c5165db9d35ecff74f7dc51527; confirm the exact Commerce edition and version against Adobe bulletin APSB26-146 (see references) |
| Language / Platform | PHP 8.3 / nginx + PHP-FPM; MariaDB 11.4, OpenSearch 2.19, Redis 7 (Docker Compose) |
| Authentication Required | No |
| Network Access Required | Yes |
Summary
Adobe Commerce (Magento) is affected by an improper neutralization of special elements used in a template engine (CWE-94) that can result in arbitrary code execution in the context of the current user. Exploitation does not require user interaction and the scope is changed. The public lab PoC reproduces a complete unauthenticated HTTP chain on stock Magento Open Source 2.4.9: a declined PayPal transparent-response request poisons a Magento failure report with a fixed PHP expression, three guest-cart GraphQL mutations store a recursive template construction in the billing address, and a standard failed-payment email causes the email template engine to build the admin Template Preview block, which reads request parameters and reaches a ColumnSet, UrlGeneratorFactory, AWS S3Client and ArrayScanner include gadget that executes the poisoned report. Success is proved by a fresh SHA-256 digest that only the vulnerable build returns; the digest is never sent to Magento.
Vulnerability Details
Root Cause
Magento’s email template language does not correctly neutralize special elements. A recursive filtering bug in the customer address formatter mistakes an unresolved {{block}} directive for a deliberately deferred instruction and adds the shared per-request SignatureProvider trust marker, so the later failed-payment email filter accepts and renders the attacker-supplied block. That block is Magento’s own admin Template Preview block, which is constructed directly through Layout rather than its admin-only controller, so the admin ACL is never consulted. Preview then reads type, text and styles from the still-live HTTP request and renders a transient email template whose ColumnSet rowUrl argument is passed to UrlGeneratorFactory, which resolves Aws\S3\S3Client and invokes the with_resolved callback ArrayScanner::collectEntities() — an include primitive that loads the first supplied value as a PHP file. The chain is completed by the report subsystem, which records the attacker-controlled request URI into var/report without neutralizing a PHP opening tag.
Attack Vector
Unauthenticated HTTP requests against stock routes, in order: a POST to the PayPal transparent-response endpoint with a PHP expression in the query string (the request fails and Magento writes the URI into var/report, disclosing the 64-hex report ID); GraphQL createEmptyCart and setGuestEmailOnCart; setBillingAddressOnCart with a self-referencing postcode, the stock HTML address format and a nested if/var/block construction in the company field; then handlePayflowProResponse with a declined payload and query parameters type, text and styles (bracket notation) that encode the downstream gadget and the report path. Production-style error handling (MAGE_MODE=production) is required for Stage 1 to persist the report.
Impact
Arbitrary PHP code execution in the context of the PHP-FPM service user on the Magento frontend, from an entirely anonymous request sequence. Because the executed content is request-controlled, this yields web-tier compromise: application secrets and env.php credentials, customer and order data, admin session or user creation, file read/write, and persistent implants. NVD notes scope changed; CISA added the CVE to KEV on 2026-09-08 (EPSS 0.34741 at ingestion).
Environment / Lab Setup
OS: Linux x86_64 host with Docker + Compose v2 (lab is container-only)
Target: Magento Open Source 2.4.9, git rev 755e34dd689021c5165db9d35ecff74f7dc51527
nginx 1.27-alpine on 127.0.0.1:8096, php:8.3-fpm-bookworm, MariaDB 11.4,
OpenSearch 2.19.0, redis:7-alpine; MAGE_MODE=production via nginx
fastcgi_param so failure reports persist
Attacker: Host loopback. poc/http_rce_probe.py refuses every non-loopback target
Tools: docker, docker compose v2, make, python3 (3.10+), curl
Resources: ~6 GB free RAM, ~5 GB free disk, outbound network on first buildSetup Steps
| |
Only nginx is published, and only on host loopback (default 127.0.0.1:8096). The first Magento clone, dependency install and application install normally take 15–40 minutes.
Proof of Concept
Step-by-Step Reproduction
Start the disposable lab —
make upthenmake wait; the storefront is reachable only athttp://127.0.0.1:8096and the source volume is the pinned 2.4.9 checkout.Stage 1 — poison a failure report — a POST to the PayPal transparent-response route with the PHP expression in the query string fails and Magento records the URI into
var/report/<64-hex id>:Shell script1 2make vulnerable python3 poc/http_rce_probe.py --target http://127.0.0.1:8096 --expect vulnerableStage 2a — prepare the guest cart — createEmptyCart, setGuestEmailOnCart, and setBillingAddressOnCart with the recursive construction in
company,{{var postcode}}as postcode, and a non-empty city.Stage 2b — trigger the failed-payment render — POST
/graphql?type=2&text=...&styles[...]=...with the ordinary declinedhandlePayflowProResponsemutation; the address formatter signs the unresolved Preview block, the email filter builds Preview, and the include gadget reads the report path fromstyles[first].Verify the execution oracle — the response contains the digest of the random nonce posted as query parameter
0, which the probe computed locally and never sent to Magento.Confirm the fix blocks it —
make http-patchedrepeats the identical sequence with VULN-39341 applied and requiresexecution_observed=false.
Exploit Code
See
poc/http_rce_probe.pyfor the loopback-only full HTTP chain,poc/component_probe.phpfor the direct sink-localization probe,poc/report_storage_probe.phpfor the inert report-storage control, anddocs/TECHNICAL-NOTES.mdfor the full data flow. Wrappers:scripts/run-http.sh,scripts/run-full-ab.sh,scripts/set-state.sh.
The two decisive request shapes:
| |
| |
Expected Output
| |
The patched control with the identical request sequence must report execution_observed=false, expectation_met=true; the upstream A/B record also shows the direct component marker going true (unpatched) and false (patched). See VALIDATION.md.
Detection & Indicators of Compromise
- Query strings or JSON bodies containing PHP opening tags (
<?,<?=) or template directives ({{block,{{var,{{if) on report, GraphQL or payment routes. var/report/files whose content includes a PHP opening tag; report IDs returned in 500 responses followed by an immediate GraphQL guest-cart sequence.- A burst of unauthenticated
createEmptyCart→setGuestEmailOnCart→setBillingAddressOnCart→handlePayflowProResponsemutations from one client, where the billing company field contains nested template syntax and the postcode is a literal self-reference. - GraphQL requests carrying query parameters
type,textandstyles[...]alongside the Payflow mutation — Preview reads these through getParam(). - PHP-FPM logs showing
Magento\Setup\Module\Di\Code\Scanner\ArrayScannerinclude attempts, AWS S3 client construction from a frontend GraphQL request, or unexpected include warnings on files under var/report. - Worker errors such as “Invalid block type” / layout generation failures right after a payment decline.
SIEM / IDS Rule (example):
alert http any any -> any any (msg:"CVE-2026-75650 StyleSmuggler Magento report poisoning"; \
content:"/paypal/transparent/response"; http_uri; \
content:"<?="; http_uri; sid:9002611;)
alert http any any -> any any (msg:"CVE-2026-75650 Magento template directive in GraphQL body"; \
content:"{{block"; http_client_body; \
content:"handlePayflowProResponse"; http_client_body; sid:9002612;)Remediation
| Action | Detail |
|---|---|
| Patch | Apply Adobe’s APSB26-146 / VULN-39341 version-matched patch through the supported deployment process (the repo’s patches/ file is path-mapped for the 2.4.9 public monorepo lab and must not be applied to a production Composer install). Then flush caches and confirm the nine control points; patch only fixes forward — it does not remove an existing implant or restore leaked credentials. |
| Workaround | Do not leave full-stack error reports writable/readable at the web tier where possible; put WAF/reverse-proxy rules in front of Magento that reject PHP opening tags and template block directives in query strings and JSON bodies, and rate-limit or block the unauthenticated PayPal transparent-response and Payflow mutation paths if unused. |
| Config Hardening | Run production mode, isolate the PHP-FPM user with a hardened read-only code tree and a separate writable var/ path, remove the Aws S3 SDK and Setup ArrayScanner classes from the deployed autoload surface where they are not required, restrict egress, and alert on report writes correlated with GraphQL guest-cart traffic. |
References
- CVE-2026-75650 — NVD
- Source PoC — dinosn/cve-2026-75650-magento-validation-lab
- Adobe Security Bulletin APSB26-146
- Adobe Commerce Knowledge Base — APSB26-146 announcement
- Adobe VULN-39341 Composer patch bundle
- Fortbridge — StyleSmuggler: Magento unauthenticated RCE
- Fortbridge StyleSmuggler PoC
- CISA Known Exploited Vulnerabilities catalogue
Notes
Auto-ingested from https://github.com/dinosn/cve-2026-75650-magento-validation-lab on 2026-11-25.
Review verdict: this is a real exploit PoC, not a detector. poc/http_rce_probe.py drives a complete unauthenticated HTTP chain from stock Magento routes to a PHP include sink and proves execution with a fresh SHA-256 oracle, so it was ingested. It is deliberately limited: marker-only by construction (a fixed hash expression, no command runner, downloader, callback, proxy or operator-supplied PHP), loopback-only by enforcement (every non-loopback target is refused), and pinned to Magento Open Source 2.4.9 revision 755e34dd in a disposable Docker stack. validator/validate_patch.py is a read-only control checker and was treated as detector-adjacent, so it was not copied; the same applies to the path-mapped Adobe patch. Status is PoC rather than Weaponized because the archive copy cannot deliver an arbitrary payload as-is — a general payload facility would need to be added to the report expression for real-world impact. Lab-authored material is MIT licensed (Copyright (c) 2026 Nicolas Krassas); upstream Magento and Adobe patch content remains under its own licensing per NOTICE.md. Limitations: the chain depends on the pinned revision’s stock DI state, address HTML format, gateway configuration and production-style error handling, needs roughly 6 GB RAM and 5 GB disk, and a 15–40 minute first-boot install; the upstream evidence is lab-local and not proof about any other edition or extension set. Not executed during archival; run only against disposable systems you own or are authorized to test.