Magento PolyShell Allows Unauthenticated File Upload and Conditional RCE
Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Mar 17, 2026

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.
Why it matters
Summary
PolyShell is an unauthenticated arbitrary file-upload vulnerability in Magento Open Source and Adobe Commerce. Internet-facing commerce sites running affected releases can be used to persist attacker-controlled files without an account; unsafe Apache or Nginx handling of the upload path escalates the issue to remote code execution.
Affected population and severity
- Affected products: Magento Open Source and Adobe Commerce production releases through 2.4.9-alpha2, according to the referenced research.
- Primary targets: organizations operating internet-facing Magento storefronts, especially retail, consumer services, B2B commerce, and managed e-commerce providers.
- Base impact: persistent placement of attacker-controlled files under
pub/media/custom_options/quote/. - Escalated impact: remote code execution if the custom-options media path is web-accessible and PHP execution is permitted. This can lead to storefront compromise, payment/customer-data theft, malware deployment, lateral movement, service disruption, and reputational and regulatory harm.
- Secondary impact: stored cross-site scripting is possible where uploaded content becomes web-accessible, potentially enabling customer or administrator session theft.
Scope and exploitation status
- Exposure is potentially widespread because the affected guest-cart REST workflow is reachable without authentication and does not require configured file-upload product options.
- RCE is configuration-dependent; Adobe-recommended Apache and Nginx configurations are intended to block direct access to this path and script execution.
- The provided references do not report confirmed exploitation in the wild or publish campaign-specific indicators.


