CVE-2026-25524

OpenMage LTS's Phar Deserialization leads to Remote Code Execution

Published Apr 20, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
Magento Long Term Support (LTS) is an unofficial, community-driven project provides an alternative to the Magento Community Edition e-commerce platform with a high level of backward compatibility. Prior to version 20.17.0, PHP functions such as `getimagesize()`, `file_exists()`, and `is_readable()` can trigger deserialization when processing `phar://` stream wrapper paths. OpenMage LTS uses these functions with potentially controllable file paths during image validation and media handling. An attacker who can upload a malicious phar file (disguised as an image) and trigger one of these functions with a `phar://` path can achieve arbitrary code execution. Version 20.17.0 patches the issue.

Analysis

AI-generated

Technical impact

The vulnerability arises when PHP functions such as getimagesize(), file_exists(), and is_readable() process phar:// stream wrapper paths, causing deserialization of the phar archive. In OpenMage Magento LTS before version 20.17.0 these functions are invoked with user-controllable paths during image validation and media handling. An attacker who uploads a specially crafted phar file disguised as an image can trigger arbitrary PHP object deserialization, leading to remote code execution. The weakness is identified as CWE‑502.

Affected Systems

Installations of OpenMage Magento LTS that run any version prior to 20.17.0 are affected. The issue is fixed in release v20.17.0 and later.

Risk and Exploitability

The CVSS score of 8.1 signals high severity. The EPSS score is not available, and the vulnerability is not listed in CISA KEV. The likely attack path involves an attacker with the ability to upload a filerequest that is processed by the vulnerable functions; the exploit requires no additional configuration beyond the default upload mechanism. While no public exploits are documented, the absence from KEV and the high severity scores indicate that the opportunity for exploitation is substantial for an attacker who can influence file uploads.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update OpenMage Magento LTS to version 20.17.0 or later; this releases the patch that removes the vulnerable deserialization logic.
  • Validate uploaded files strictly to ensure only legitimate image formats are accepted and reject any phar:// or other non-image paths before processing.
  • If an update cannot be applied immediately, limit the exposure by disabling or restricting PHP functions capable of parsing phar streams (e.g., by adjusting php.ini or code) and monitor logs for unauthorized upload attempts.

Generated by OpenCVE AI on April 20, 2026 at 17:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-fg79-cr9c-7369 OpenMage LTS: Phar Deserialization leads to Remote Code Execution
History
Type Values Removed Values Added
CPEs cpe:2.3:a:openmage:magento:*:*:*:*:lts:*:*:*
Type Values Removed Values Added
First Time appeared Openmage
Openmage magento
Vendors & Products Openmage
Openmage magento
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Magento Long Term Support (LTS) is an unofficial, community-driven project provides an alternative to the Magento Community Edition e-commerce platform with a high level of backward compatibility. Prior to version 20.17.0, PHP functions such as `getimagesize()`, `file_exists()`, and `is_readable()` can trigger deserialization when processing `phar://` stream wrapper paths. OpenMage LTS uses these functions with potentially controllable file paths during image validation and media handling. An attacker who can upload a malicious phar file (disguised as an image) and trigger one of these functions with a `phar://` path can achieve arbitrary code execution. Version 20.17.0 patches the issue.
Title OpenMage LTS's Phar Deserialization leads to Remote Code Execution
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 20, 2026, 4:54 PM
Reserved
Feb 2, 2026, 7:59 PM
Status
Analyzed
Published
Apr 20, 2026, 5:16 PM
Modified
Oct 26, 2026, 9:10 PM