Skip to content

PHP

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

CVE-2026-129474Published 19 Nov 2026, 14:43 UTC

Real-world risk

1.8/ 10Low

Routine

If the vulnerable configuration applies to you: 4.1

PreliminaryFrom the CVSS vector only · confidence low

CVSS

9.2

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from php)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
PHPUbiquitous>= 8.5.0, < 8.5.138.5.13

What to do

Update to a fixed version: 8.5.13.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T2: Likely to be exploited (× 0.90)

EPSS probability at least 0.10, or EPSS percentile at least 0.95

EPSS 21.2% chance of exploitation in 30 days (percentile 98), as of 2026-12-04.

The arithmetic
  1. Prerequisites multiplied together0.203
  2. Threat T2: Likely to be exploited0.900
  3. 10 × impact 1 × prerequisites 0.2025 × threat 0.91.823
  4. Rounded to one decimal between 0.1 and 101.8

How the score works

Exploitation and evidence timeline

  1. 19 Nov 2026 Published
  2. 3 Dec 2026 Risk 1.8 (cvss fallback)

Weakness

CWE-416

References

Get alerts for PHP

Free email or text alerts when a vulnerability in PHP reaches risk 8 or higher. Nothing else.