Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. openmage/magento-lts
  4. ›
  5. CVE-2026-40488

CVE-2026-40488: OpenMage LTS: Customer File Upload Extension Blocklist Bypass → Remote Code Execution

April 21, 2026 (updated April 27, 2026)

The product custom option file upload in OpenMage LTS uses an incomplete blocklist (forbidden_extensions = php,exe) to prevent dangerous file uploads. This blocklist can be trivially bypassed by using alternative PHP-executable extensions such as .phtml, .phar, .php3, .php4, .php5, .php7, and .pht. Files are stored in the publicly accessible media/custom_options/quote/ directory, which lacks server-side execution restrictions for some configurations, enabling Remote Code Execution if this directory is not explicitly denied script execution.

References

  • github.com/OpenMage/magento-lts
  • github.com/OpenMage/magento-lts/security/advisories/GHSA-3j5q-7q7h-2hhv
  • github.com/advisories/GHSA-3j5q-7q7h-2hhv
  • nvd.nist.gov/vuln/detail/CVE-2026-40488

Code Behaviors & Features

Detect and mitigate CVE-2026-40488 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 20.17.0

Fixed versions

  • 20.17.0

Solution

Upgrade to version 20.17.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-434: Unrestricted Upload of File with Dangerous Type

Source file

packagist/openmage/magento-lts/CVE-2026-40488.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:20:25 +0000.