Skip to main content

PHP CVE-2026-25524

| EUVDEUVD-2026-23889 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-04-20 GitHub_M GHSA-fg79-cr9c-7369
8.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Upload malicious phar disguised as image
  2. Delivery
    Store file on server filesystem
  3. Exploit
    Manipulate path parameter with phar:// wrapper
  4. Install
    Trigger vulnerable PHP function processing path
  5. C2
    Deserialize embedded malicious objects
  6. Execute
    Execute arbitrary code as web server user
  7. Impact
    Establish persistent backdoor access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the OpenMage instance exposes file upload functionality (product images, customer avatars, CMS media uploads, or import/export features) where phar archives can be stored on the server filesystem with attacker-controlled or predictable paths. The application must subsequently process uploaded file paths through vulnerable PHP functions (getimagesize, file_exists, is_readable) in media validation, thumbnail generation, or file existence checks. Critically, the attacker must be able to influence the file path passed to these functions to inject the phar:// stream wrapper prefix, either through direct parameter manipulation, path traversal, or exploiting another vulnerability that reflects user input into filesystem operations. High attack complexity indicates that default configurations may not be directly exploitable - likely requires specific media handling workflows, administrative features exposed to unauthenticated users, or chained with another vulnerability for path control. The vulnerability is NOT exploitable if: phar extension is disabled in PHP configuration, file uploads are restricted to authenticated administrators only, or application validates and strips phar:// wrappers before filesystem operations. Applies specifically to PHP-based deployments of OpenMage Magento LTS - unaffected if running alternative platforms.

Impact

Despite the critical CVSS score of 8.1, real-world exploitation risk depends heavily on deployment specifics. The high attack complexity (AC:H) indicates significant prerequisites: attackers must (1) successfully upload a phar file past content validation, (2) determine or control the file path used in subsequent operations, and (3) trigger one of the vulnerable functions with a crafted phar:// URL. No authentication required (PR:N) and network vector (AV:N) expand the attack surface, but the AC:H rating suggests exploitation is non-trivial. EPSS data unavailable for risk prioritization. No CISA KEV listing indicates no confirmed widespread exploitation. Absence of public POC reference in provided data suggests limited weaponization, though phar deserialization techniques are well-documented in security research. The SSVC decision tree would prioritize based on: exploitation status (no evidence of active exploitation), automatable (possibly, given network vector, but AC:H suggests manual steps required), technical impact (total control per CVSS C:H/I:H/A:H). Organizations running public-facing OpenMage instances with file upload capabilities should prioritize patching. Those with restricted upload access or Web Application Firewall rules blocking phar:// wrappers face reduced immediate risk. CRITICAL CAVEAT: The AC:H rating may reflect detection difficulty rather than true exploitation barriers - once prerequisites are met, exploitation is deterministic.

Exploit ScenarioDerived

An attacker identifies an OpenMage storefront allowing product image uploads or customer profile pictures without authentication. They craft a malicious phar archive containing serialized PHP objects with gadget chains targeting known classes in OpenMage or installed plugins. The phar file is disguised with a .jpg extension and valid JPEG header bytes to pass content-type validation. After uploading via the media management endpoint, the attacker probes for reflected file paths in error messages or uses directory traversal techniques to determine the uploaded file's storage location. They then submit a request to an image processing endpoint (such as thumbnail generation or format conversion) with a manipulated path parameter like 'phar:///var/www/html/media/upload/malicious.jpg'. The application passes this path to getimagesize() for validation, triggering automatic deserialization of the phar metadata and executing the embedded object chain, granting the attacker remote code execution as the web server user.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 20, 2026

Remote code execution in OpenMage Magento LTS versions prior to 20.17.0 allows unauthenticated attackers to execute arbitrary code by uploading malicious phar archives disguised as images and triggering PHP deserialization via phar:// stream wrappers. The attack requires high complexity (AC:H) to exploit successfully. EPSS data not available, but exploitation requires specific conditions around file upload and path manipulation. Vendor patch available in version 20.17.0, confirmed by GitHub security advisory GHSA-fg79-cr9c-7369.

RemediationAI

Upgrade immediately to OpenMage Magento LTS version 20.17.0 or later, available at https://github.com/OpenMage/magento-lts/releases/tag/v20.17.0. The vendor-confirmed patch (GHSA-fg79-cr9c-7369) addresses phar deserialization by implementing stream wrapper filtering before passing paths to vulnerable PHP functions. If immediate patching is not feasible, implement these compensating controls: (1) Configure PHP to disable the phar extension via php.ini setting 'phar.readonly=1' and restart PHP-FPM/Apache - this prevents phar:// execution but breaks legitimate phar-dependent functionality if present. (2) Deploy Web Application Firewall rules to block HTTP requests containing 'phar://' strings in file path parameters, headers, or upload fields - bypass risk exists if attackers URL-encode or use alternate representations. (3) Restrict file upload functionality to authenticated administrative users only and implement strict file type validation using magic byte verification (not just extension checks) to reject phar archives - determined attackers may craft polyglot files passing validation. (4) Apply filesystem-level access controls preventing web server processes from reading uploaded files outside designated media directories. Note that workarounds significantly degrade defense-in-depth; patching remains the only complete remediation.

Affected VersionsENISA

magento-lts < 20.17.0

Affected Packages

composer openmage/magento-lts fix: 20.17.0
euvd magento_lts fix: 20.17.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenMage Magento LTS is a community-maintained fork of Magento Community Edition for e-commerce platforms. This vulnerability exploits a well-known PHP deserialization attack vector through phar:// stream wrappers. PHP's phar (PHP Archive) extension automatically deserializes metadata when filesystem functions like getimagesize(), file_exists(), or is_readable() are called on phar:// URLs. OpenMage's image validation and media handling routines use these functions with paths that may be attacker-influenced. When a phar file is uploaded (disguised with image extensions like .jpg or .png), and a vulnerable function processes it via a phar:// wrapper, PHP deserializes embedded objects without validation. This triggers CWE-502 (Deserialization of Untrusted Data), allowing attackers to instantiate arbitrary classes and execute magic methods (__destruct, __wakeup), leading to code execution if gadget chains exist in the application. The attack surface exists wherever user-supplied file paths reach these PHP functions without proper stream wrapper filtering.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Patch released
Apr 23, 2026 - 17:47 nvd
Patch available
Patch available
Apr 20, 2026 - 17:16 EUVD
CVE Published
Apr 20, 2026 - 16:11 nvd
HIGH 8.1

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

OpenMage Magento LTS versions before 20.17.0 contain a remote code execution vulnerability allowing unauthenticated attackers to execute arbitrary code through malicious file uploads. This affects any organization running vulnerable Magento instances and exposes customer data, payment systems, and operational infrastructure to direct compromise without requiring user credentials.

Business Impact: High
Compensating Controls

Apply vendor patch to version 20.17.0 or later. If patching is delayed: (1) Block .phar file uploads at the application and WAF level; (2) Restrict execute permissions on upload directories via file system ACLs; (3) Disable PHP stream wrappers (phar://, compress://) via php.ini allow_url_fopen and allow_url_include settings; (4) Implement strict file type validation beyond extension checking; (5) Monitor upload directories for suspicious activity.

Threat Intelligence Overview

EPSS Score
0.1%
Top 79% exploitable
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy