Skip to main content

PHP EUVDEUVD-2026-130146

| CVE-2026-129474 CRITICAL
Use After Free (CWE-416)
2026-11-19 php
9.2
CVSS 4.0 · Vendor: php
View

Attack ChainAIDerived

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

  1. Access
    Send crafted request to a magic-method code path
  2. Delivery
    Size payload to cross memory_limit during argument build
  3. Exploit
    Trigger fatal error while entering __call()/__callStatic()
  4. Execution
    Backtrace collects freed request-controlled memory
  5. Impact
    Corrupt memory and execute code as PHP worker

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Exploitation requires a PHP 8.5.x worker (>=8.5.0, <8.5.13) running with fatal_error_backtraces=1 (default in 8.5) AND zend.exception_ignore_args=0 - the latter is NOT the case under php.ini-production, which sets zend.exception_ignore_args=1 and fully blocks this path. It also requires an application code path that forwards through a __call() or __callStatic() magic method (e.g., logging facades, DB interfaces, service proxies such as Laravel facades or Magento guest shipping estimation), attacker control over enough request data to influence memory allocation, and a fatal error (exceeding memory_limit, or an execution-time-limit expiry) occurring precisely as PHP enters that magic call. For actual code execution rather than a worker crash, the attacker additionally needs knowledge of usable memory addresses to defeat ASLR. Limiting factors: production-default configuration neutralizes the attack; authentication requirements depend entirely on which application path reaches the magic method; mere presence of a framework, magic method, or large request body does not establish exploitability. PHP 8.2-8.4 contain the underlying bug but have no established remote trigger and are out of scope.

Impact

Multiple signals point to a genuine high priority. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N) with VC:H/VI:H/VA:H yields a 9.2 and reflects full-impact remote code execution, and the vuln.today Decision label is act_now. The underlying bug (CWE-416 use-after-free) is credible and the advisory states RCE was actually demonstrated against PHP 8.5 by the reporting PHP team. However, the severity signals are tempered by real exploitation friction encoded in the vector itself: AC:H and AT:P indicate the attack is not simply fire-and-forget - it depends on application-specific conditions (a reachable __call()/__callStatic() path, attacker-influenced memory allocation, a fatal error at a precise interval) and, for actual code execution, defeating ASLR with knowledge of usable memory addresses. No EPSS score, KEV listing, or confirmed public exploit code is present in the supplied data, so there is no evidence of active or widespread exploitation yet; the risk today is demonstrated-but-targeted rather than mass-exploited. Note a configuration dependency that strongly affects real risk: the recommended php.ini-production setting (zend.exception_ignore_args=1) prevents this attack path, so environments using production defaults are not exposed even though PHP's built-in default is vulnerable. Net: treat as act_now for exposed PHP 8.5 workers, but exposure hinges on configuration and application reachability, not raw CVSS alone.

Exploit ScenarioDerived

An attacker submits a crafted request (e.g., oversized JSON to an import endpoint) to an application that forwards calls through a __call()/__callStatic() magic method such as a logging facade. The request is sized so that building an argument crosses memory_limit, triggering a fatal error exactly as PHP enters the magic call; with fatal_error_backtraces enabled and zend.exception_ignore_args disabled, the backtrace reads freed, request-controlled memory, corrupting memory or - with knowledge of memory addresses despite ASLR - executing code as the PHP worker. RCE was demonstrated by the reporting team, but no public exploit code is identified in the supplied data; the high attack complexity (AC:H/AT:P) reflects the required allocation timing and memory-address knowledge.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) Patch available 8.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 19, 2026

A use-after-free in the Zend engine's backtrace argument collection gives PHP 8.5.x (8.5.0 through 8.5.12) a remote code execution path when a fatal error strikes while the application is entering a method forwarded through __call() or __callStatic(). Exploitation requires fatal_error_backtraces=1 (default in 8.5) plus zend.exception_ignore_args=0, an application path that actually reaches a magic-method call, attacker control over enough request data to steer memory allocation, and - for code execution rather than a worker crash - knowledge of usable memory addresses to defeat ASLR; php.ini-production sets zend.exception_ignore_args=1 and fully blocks the attack path. No public exploit code has been identified at time of analysis and there is no CISA KEV listing, though the priorities signal is act_now and the vendor advisory documents an internally demonstrated end-to-end chain; fixed in PHP 8.5.13.

RemediationAI

Upgrade to PHP 8.5.13, the fixed release for the 8.5 branch (the advisory phrases this as upgrading to 8.5.13 when available); this is the only complete fix. If an immediate update is not possible, set zend.exception_ignore_args=1 in the configuration actually consumed by the affected PHP workers and restart them - this is the primary workaround for the fatal error path, and it is already the value shipped in php.ini-production, so confirm the effective value including FPM pool settings and application-level overrides, since changing only the CLI configuration is insufficient. On PHP 8.5 and later, setting fatal_error_backtraces=0 also closes this attack path, at the cost of losing fatal error backtraces for diagnostics. Note that display_errors=0 does not prevent PHP from constructing the backtrace and provides no protection. Request-size limits and avoiding expensive processing or logging of untrusted request bodies reduce exposure but are not a complete substitute for the configuration change or the update, and extensions that independently inspect interrupted calls should be reviewed as well.

Affected VersionsENISA

PHP 8.5.0 <8.5.13

Affected Packages

euvd php fix: 8.5.13

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

The flaw is CWE-416 (use-after-free) inside PHP's backtrace machinery. Before PHP actually enters a __call() or __callStatic() handler, the engine briefly represents the requested method as a separate call; a backtrace captured during that interval can collect values left behind by an earlier call instead of the current arguments, and some of those values can point into memory that has already been freed. PHP 8.5.0 introduced fatal error backtraces, and PHP 8.5.12 added delayed handling of allocation failure, which allows a memory_limit fatal error (or an execution-time-limit expiry) to be reported exactly while the magic method call is being entered. With fatal_error_backtraces enabled and zend.exception_ignore_args disabled, PHP then treats request-controlled bytes in reused memory as live argument values; processing or releasing that backtrace can corrupt memory or transfer control to an attacker-chosen address. Magic methods are widespread in framework forwarding layers (logging facades, database interfaces, service proxies - the advisory cites Laravel facades and Magento guest shipping estimation as examples of reachable calls), but the presence of a framework, a magic method, or a large request body alone does not establish exploitability. PHP 8.2-8.4 contain the underlying backtrace error but no attacker-controlled remote trigger has been established, so those branches are outside the affected range.

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 (php) PRIMARY 9.2 CRITICAL
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

Remotely reachable and unauthenticated where the app path allows (AV:N/PR:N/UI:N), but precise allocation timing, fatal-error interval, and ASLR-defeating address knowledge make it AC:H; full RCE impact gives C/I/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (php).

CVSS VectorVendor: php

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 16:18 EUVD
CVE Published
Nov 19, 2026 - 14:43 cve.org
CRITICAL 9.2

DescriptionCVE.org

Use-after-free in magic method backtraces can lead to remote code execution.

When collecting the arguments of a method call handled by __call() or __callStatic() for a backtrace, PHP can read stale values that may refer to freed memory. If a fatal error such as exceeding memory_limit occurs while an application enters such a call, with fatal_error_backtraces enabled (the default) and zend.exception_ignore_args disabled, a remote attacker who controls enough request data to influence memory allocation may cause memory corruption, crash the PHP worker or, with knowledge of memory addresses, execute arbitrary code. php.ini-production enables zend.exception_ignore_args, which prevents this.

This issue affects PHP versions 8.5.* before 8.5.13.

Technical POC Analysis

CWE-416, use-after-free.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

CVE-2026-129474 is a critical use-after-free flaw in the PHP Zend engine that can allow remote code execution on servers running PHP 8.5.0 through 8.5.12. Leadership should care because any internet-facing application on these versions with default development-style settings could be compromised, and the vendor has internally demonstrated a full attack chain. The issue is fully mitigated by upgrading to PHP 8.5.13 or, as an interim measure, ensuring the zend.exception_ignore_args setting is enabled (as it is in the production php.ini).

Business Impact: High
Compensating Controls

Set zend.exception_ignore_args=1 in php.ini (as in production defaults) to fully block the attack path; also disable fatal_error_backtraces and restrict network exposure of PHP applications until patched.

Threat Intelligence Overview

EPSS Score
8.6%
Top 5% exploitable
Prevalence
Medium
PHP is ubiquitous, but only the brand-new 8.5 branch is affected
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment NEWS GitHub VulDB

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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 8.6%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

75
Low Medium High Critical
KEV: 0
EPSS: +9
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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