Magento PolyShell: Patch, Verify, and Check for Implants

Magento PolyShell: Patch, Verify, and Check for Implants

CISA added CVE-2026-48356, the Magento and Adobe Commerce vulnerability known as PolyShell, to its Known Exploited Vulnerabilities catalog on October 27, 2026. If you operate an affected store, apply Adobe’s security update promptly, verify the deployed code is patched, and then investigate for files or storefront changes left by earlier attacks—patching does not remove an existing backdoor. (raw.githubusercontent.com)

Key takeaways

  • Prioritize the patch: PolyShell is an unauthenticated file-upload vulnerability with documented exploitation. (adobe.com)
  • Check patch coverage, not just the version label: Adobe’s monthly isolated security patches are non-cumulative and must be applied in sequence. (experienceleague.adobe.com)
  • Inspect files and database content: Adobe recommends checking leftover executable files, unknown administrators, injected scripts, and unfamiliar code changes. (experienceleague.adobe.com)
  • Keep patch verification and incident response separate: detecting a security patch is not the same as establishing that a store is clean. (experienceleague.adobe.com)

What changed

PolyShell allows an unauthenticated attacker to upload dangerous files through Magento’s REST API. Sansec describes files disguised as images; whether an upload leads to PHP execution or another outcome depends partly on the web-server configuration. (sansec.io)

Adobe published APSB26-73 on July 14, 2026, covering CVE-2026-48356 alongside other vulnerabilities. CISA’s October listing makes the operational priority clear: this is an exploited vulnerability, not merely a theoretical upload-validation problem. (adobe.com)

Some early PolyShell reporting still contains March-era statements that no production patch exists. Do not use those statements as current guidance: Sansec’s updated timeline records Adobe’s July backports, and Adobe provides release-specific patch instructions. (sansec.io)

Why it matters for stores

A patched store can still contain malicious database content. Sansec’s October 24 research describes a persistent CMS-block loader campaign that also used PolyShell; deleting the visible loader does not remove the attacker’s underlying database access. (sansec.io)

That is why we recommend two separate workstreams: close the vulnerability, then establish whether someone already used it. Adobe’s incident-response guidance explicitly calls for reviewing accounts, application code, database configuration, and logs—not simply applying an update. (experienceleague.adobe.com)

Step 1: Preserve evidence without delaying protection

Before changing files, preserve the available web-server, application, deployment, and administrative logs. If you suspect compromise, involve your hosting provider and incident-response team; Adobe recommends preserving critical logs and investigating when and how access occurred. (experienceleague.adobe.com)

We recommend taking a protected snapshot of the current files and database where practical. Treat it as evidence, not a clean recovery copy. If you find active malicious checkout behavior, restrict public access while your team investigates rather than continuing to expose shoppers.

Step 2: Apply the correct Adobe update

Use APSB26-73 and its linked installation instructions to select the patch for your exact edition, release line, and installed components. The bulletin identifies these July security-update labels: (adobe.com)

Release line July update identifier
2.4.9 2.4.9-2026-jul
2.4.8 2.4.8-2026-jul
2.4.7 2.4.7-2026-jul
2.4.6 2.4.6-2026-jul

For the isolated-patch route, Adobe requires the specified security-only baseline first—for example, 2.4.8-p5 before its July isolated patch, or 2.4.7-p10 before the corresponding patch. Apply the matching files for every installed component; an Enterprise installation can require both CE and EE patches. (experienceleague.adobe.com)

Follow this deployment sequence:

  1. Back up and test the selected patch in staging.
  2. Follow Adobe’s installation procedure for your hosting model.
  3. Deploy through your normal controlled release process.
  4. Confirm the patch on production, not only in your build environment. (experienceleague.adobe.com)

For Adobe Commerce Cloud, check the applicable cloud-patches update before applying duplicate isolated patches. Adobe warns that applying a fix already supplied through that package can cause installation failures. (experienceleague.adobe.com)

July is not the finish line. Review subsequent bulletins and hotfix requirements, including Adobe’s October 13 update; do not assume installing one later monthly patch supplies every earlier fix. (adobe.com)

Step 3: Verify the patched code is actually serving traffic

Adobe’s Commerce Version Tool checks installed code for applicable monthly patches and reports CVE coverage. From the deployed project root, run: (experienceleague.adobe.com)

php vendor/bin/patch-status

Review the result for CVE-2026-48356, along with missing patches, unknown results, and warnings. UNKNOWN is not a pass. The tool is informational: it does not install missing fixes. (experienceleague.adobe.com)

Our deployment checklist is to repeat verification on every production node or container and confirm that the web server points to the release you inspected. Keep the report with your deployment record.

Also account for OPcache. If opcache.validate_timestamps is disabled, PHP requires explicit cache invalidation or an appropriate service restart before changed files take effect. Use your hosting provider’s supported deployment procedure. (php.net)

For separate PHP-runtime checks, see our PHP2Shell patching and store-security checklist.

Step 4: Look for planted files

Start with the upload directory identified in Sansec’s PolyShell research, then search for a backdoor filename observed in attacks. Run these listing commands from the deployed Magento root: (sansec.io)

# List uploads for review, including files without PHP extensions.
find pub/media/custom_options/ -type f ! -name '.htaccess' -print

# Look for one observed backdoor filename.
find . -type f -name 'accesson.php' -print

Sansec identifies .php, .phtml, and .phar files in the custom-options upload directory as strong compromise indicators. However, a search for those extensions or one known filename is not a complete investigation. (sansec.io)

Compare production application code with a trusted release or repository. Quarantine suspicious changes for investigation, and restore required code from a known-clean source rather than trusting an edited production tree. (experienceleague.adobe.com)

Do not open suspected web shells through a browser. We recommend preserving their paths, hashes, and protected copies before removal.

Step 5: Review CMS content and storefront injections

A filesystem check misses code stored in the database. Sansec recommends searching CMS blocks and pages for loader-related patterns, including encoded-loader behavior. Using a read-only database account, run: (sansec.io)

SELECT block_id, identifier, update_time
FROM cms_block
WHERE content LIKE '%fpCode%'
   OR content LIKE '%se_referrer%'
   OR content LIKE '%localStorage.getItem%';

SELECT page_id, identifier, update_time
FROM cms_page
WHERE content LIKE '%fpCode%'
   OR content LIKE '%se_referrer%'
   OR content LIKE '%localStorage.getItem%';

Add your configured table prefix where necessary. Treat results as investigation leads, not automatic deletion targets: inspect the content and compare it with approved changes. No matches do not establish that the database is clean. (sansec.io)

Also review inline storefront scripts and the configurable HTML head and Miscellaneous HTML footer fields. Adobe specifically recommends checking these locations and reviewing unfamiliar code and database changes. (experienceleague.adobe.com)

Step 6: Check administrators and payment pages

Review administrator accounts with the people responsible for the store. Investigate unfamiliar users or unexpected access, remove unauthorized accounts, and reset administrator passwords. Adobe includes these actions in its security cleanup guidance. (experienceleague.adobe.com)

Next, inspect the checkout as delivered to the browser—not just its source templates. We recommend comparing loaded scripts, external destinations, payment forms, and redirects with your approved payment integration. PCI SSC guidance emphasizes script authorization, integrity, and detecting unauthorized changes to payment-page content received by the browser. (pcisecuritystandards.org)

If compromise is confirmed, extend recovery beyond the visible implant. Adobe recommends reviewing exposed credentials—including database access, payment integrations, API keys, and administrative access—and rebuilding from clean sources where necessary. Continue log review and file-integrity monitoring after recovery. (experienceleague.adobe.com)

FAQ

Does patching PolyShell remove malware?

No. The patch addresses the vulnerability; existing malicious files, database scripts, or unauthorized access require separate investigation and cleanup. (experienceleague.adobe.com)

Is my store safe if PHP execution is blocked in media directories?

That restriction reduces one execution route, but uploaded files can remain on disk and become dangerous after configuration changes. It does not replace patching. (sansec.io)

Can a clean external scan rule out compromise?

No. Sansec documented a loader that distinguishes shoppers from automated scanners and can return no malicious content to the scanner. Combine external checks with server-side and database review. (sansec.io)

Sources

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

captcha
Reload

Please enter the characters shown in the CAPTCHA to verify that you are human.