CVE-2026-48356: Adobe Commerce file upload leads to arbitrary code execution

Adobe Commerce and Magento versions 2.4.4 through 2.4.9 and B2B versions 1.3.3 through 1.5.2 allow unauthenticated remote attackers to upload arbitrary files (including PHP) by crafting a malicious URL. Exploitation requires victim interaction but results in full code execution and account

Share

An unrestricted file upload vulnerability in Adobe Commerce allows attackers to bypass file-type restrictions and upload dangerous files (PHP, JSP, etc.) to the web-accessible directory. The attack requires a victim to click a malicious link or visit a compromised page, but once executed, the attacker gains remote code execution as the web server user. This can lead to theft of customer data, card information, administrative accounts, and full site compromise.

CVECVE-2026-48356
SeverityCritical (CVSS 9.3)
Actively exploitedYes, listed in CISA's Known Exploited Vulnerabilities catalog on 27 Oct 2026
CISA remediation deadline10 Nov 2026
WeaknessCWE-434 (unrestricted file upload)
Attack vectorNetwork
Privileges requiredNone
User interactionRequired
Published14 Jul 2026

How the attack works

The Commerce file upload handler does not properly validate or restrict file types before storing them. An attacker crafts a URL or web page that triggers the upload endpoint with a PHP (or other executable) file disguised with an allowed extension or MIME type. When the victim interacts with the URL, the file is uploaded to a web-accessible location. The attacker then directly requests the uploaded file via HTTP, causing the web server to execute the PHP payload with the privileges of the application.

Who is affected

Adobe Commerce versions 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9 and Adobe Commerce B2B versions 1.3.3, 1.3.4, 1.4.2, 1.5.2 are vulnerable. This includes all on-premises installations, cloud deployments (Magento Cloud, AWS, Azure, etc.), and third-party hosting providers running affected versions.

Affected products listed:

  • Adobe Commerce (version 2.4.4)
  • Adobe Commerce (version 2.4.5)
  • Adobe Commerce (version 2.4.6)
  • Adobe Commerce (version 2.4.7)
  • Adobe Commerce (version 2.4.8)
  • Adobe Commerce (version 2.4.9)
  • Adobe Commerce B2B (version 1.3.3)
  • Adobe Commerce B2B (version 1.3.4)
  • Adobe Commerce B2B (version 1.4.2)
  • Adobe Commerce B2B (version 1.5.2)

How to check if you're exposed

  • Query your Commerce installation for the version number via admin panel or `app/version.txt`; match against the list above
  • Search application logs (var/log/system.log, var/log/exception.log) and web server logs for POST requests to file upload endpoints (e.g., /media, /pub/media) with suspicious file extensions (php, phtml, phar, etc.)
  • Scan the `pub/media` and upload directories for recently modified PHP or executable files; use `find /path/to/media -name '*.php*' -o -name '*.phar' -mtime -30`
  • Review admin user logs and session tables for unauthorized accounts created or unusual login timestamps

How to fix it

  • Download and apply the security patch from Adobe's security bulletin for your Commerce version; test on a staging environment before production deployment
  • After patching, audit the `pub/media` directory and remove any suspicious files (unexpected PHP, JSP, phtml, phar files)
  • Reset all admin user passwords and review admin user accounts for unauthorized entries; enable two-factor authentication
  • If you cannot patch immediately, implement a WAF rule to block requests to file upload endpoints and monitor logs for attempted exploitation

If you can't patch yet

  • Configure your web server (Apache, Nginx) to deny execution of scripts in the media and upload directories (disable PHP, JSP, etc. in those locations via .htaccess or server config)
  • Implement a Web Application Firewall (WAF) rule to block file upload requests containing executable extensions or suspicious MIME types to the upload handler
  • Restrict file upload functionality to authenticated users only and log all upload attempts with file names, types, and user identity

Need help checking your exposure or patching at scale? FutureOps InfoTech can help.

Read more