p PatchFirst

CVE-2026-129474

CVE-2026-129474 · Use-after-free in magic method backtraces can lead to remote code execution

CVSS 9.2 · Critical · EPSS 21.2% · Public exploit · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • phpUpdate to 8.5.13
  • php8.5 Ubuntu 26.10Update to 8.5.9-0ubuntu2.2
  • php8.5 Ubuntu 26.04 LTSUpdate to 8.5.4-0ubuntu1.6

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="php8.5"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • RHSA-2026:101658 · Red Hat hummingbird 1 ·
  • USN-9185-1 · Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Ubuntu 26.04 LTS, Ubuntu 26.10, Ubuntu Pro 14.04 LTS, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS ·
  • openSUSE-SU-2026:12618-1 · openSUSE Tumbleweed ·

Stack: system · php

Affected products and versions

  • php

    Versions
    • ≥ 8.5.0, < 8.5.13: Affected (semver)

    Update to 8.5.13

  • php8.5 Ubuntu 26.10

    Versions
    • 8.5.4-0ubuntu1
    • 8.5.4-0ubuntu3
    • 8.5.9-0ubuntu1
    • 8.5.9-0ubuntu2
    • 8.5.9-0ubuntu2.1
    Affected ranges
    • ECOSYSTEM: < 8.5.9-0ubuntu2.2

    Update to 8.5.9-0ubuntu2.2

  • php8.5 Ubuntu 26.04 LTS

    Versions
    • 8.5.2-0ubuntu1
    • 8.5.4-0ubuntu1
    • 8.5.4-0ubuntu1.1
    • 8.5.4-0ubuntu1.2
    • 8.5.4-0ubuntu1.3
    • 8.5.4-0ubuntu1.4
    All versions (7)
    • 8.5.4-0ubuntu1.5
    Affected ranges
    • ECOSYSTEM: < 8.5.4-0ubuntu1.6

    Update to 8.5.4-0ubuntu1.6

Original sources

Check your server →