Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilitywidely-deployed-product-advisoryinternet-exposed-service

Magento PolyShell Allows Unauthenticated File Upload and Conditional RCE

Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Mar 17, 2026

Magento PolyShell Allows Unauthenticated File Upload and Conditional RCE

The PolyShell flaw, tracked in Adobe advisory APSB25-94, allows unauthenticated attackers to use Magento Open Source and Adobe Commerce guest-cart REST API requests to upload attacker-controlled image polyglot files into pub/media/custom_options/. The issue affects production releases reportedly through 2.4.9-alpha2 and stems from validation that accepts image content and MIME types without enforcing that the supplied filename extension matches the validated image format.

Remote code execution is possible when Apache or Nginx exposes the custom-options upload path and permits PHP execution there. Even where server configuration prevents execution, attackers can persist arbitrary files in the directory and may obtain stored XSS if uploaded content is web-accessible. Organizations should apply Adobe’s relevant remediation, ensure upload directories cannot execute scripts or be directly exposed, and investigate pub/media/custom_options/ for unexpected non-image files before making web-server configuration changes.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Mar 17, 2026
  1. Reported Aug 10, 20263mo ago

    Magento 2.4.9-alpha3 addresses PolyShell

    The issue is indicated as addressed in Magento version 2.4.9-alpha3. No release date for that version is provided.

    Magento PolyShell: Unauthenticated File Upload to RCE (APSB25-94)
  2. Mar 17, 20268mo ago

    Sansec publishes PolyShell file-upload vulnerability research

    Sansec published research identifying PolyShell (APSB25-94), an unauthenticated unrestricted file-upload flaw in Magento Open Source and Adobe Commerce. The issue permits persistent placement of attacker-controlled image-valid polyglot files through the guest-cart REST API; remote code execution depends on unsafe web-server configuration.

    Sansec - Research - Magento PolyShell: unrestricted file upload in Magento and Adobe Commerce
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
Magento Open SourceAdobe Commerce
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.