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 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

7
Patch released
Apr 23, 2026 - 17:47 nvd
Patch available
Re-analysis Queued
Apr 20, 2026 - 17:52 vuln.today
cvss_changed
Analysis Generated
Apr 20, 2026 - 17:52 vuln.today
Patch available
Apr 20, 2026 - 17:16 EUVD
EUVD ID Assigned
Apr 20, 2026 - 17:15 euvd
EUVD-2026-23889
Analysis Generated
Apr 20, 2026 - 17:15 vuln.today
CVE Published
Apr 20, 2026 - 16:11 nvd
HIGH 8.1

DescriptionGitHub Advisory

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.

AnalysisAI

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.

Technical ContextAI

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.

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.

More in PHP

View all
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

CVE-2024-46506 CRITICAL POC
10.0 May 13

NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro

Share

CVE-2026-25524 vulnerability details – vuln.today

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