# PHP Patches Seven Critical RCE Vulnerabilities (CVE-2026-115560, CVE-2026-129481, CVE-2026-129182, CVE-2026-129474, CVE-2026-126714, CVE-2026-129289, CVE-2026-129496)

> On 2026-11-19 the PHP project released 8.6.0 and 8.5.13, with security releases 8.4.28, 8.3.37 and 8.2.36, fixing seven critical (CVSS v4.0 9.2) flaws that can lead to remote code execution. They cover session handling, use-after-free bugs, PHP-FPM/LSAPI request smuggling and a timezone-cache use-after-free. The sources do not state exploitation of these seven CVEs, and several advisories say RCE has not been demonstrated for specific entry points.

- **Published:** 2026-11-19T16:18:30Z
- **Last reviewed:** 2026-11-19T16:40:49.168Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6472
- **ID:** TL-2026-6472
- **Severity:** CRITICAL (CVSS 9.2)
- **Category:** VULNERABILITY
- **Status:** PATCHED
- **Detections:** 9 (1 shown free below) · **IOCs:** 22
- **CVEs:** CVE-2026-115560, CVE-2026-129481, CVE-2026-129182, CVE-2026-129474, CVE-2026-126714, CVE-2026-129289, CVE-2026-129496, CVE-2026-129291, CVE-2026-128090, CVE-2026-129501, CVE-2026-129538, CVE-2026-129292, CVE-2026-15353, CVE-2026-129506, CVE-2026-128064, CVE-2026-127960, CVE-2026-129438, CVE-2026-48841

## Description

PHP announced on 2026-11-18 that security releases would ship on 2026-11-19 and affect all supported branches, with a highest severity of CRITICAL. The team noted that the critical issues require non-default configuration or uncommon setups. On 2026-11-19 PHP 8.6.0 (GA) and security releases 8.5.13, 8.4.28, 8.3.37 and 8.2.36 shipped, and PHP published seven critical GitHub security advisories in php/php-src, each scored CVSS v4.0 9.2 (SecurityWeek reports the release also fixes 10 high and medium severity flaws).

Session (ext-session): CVE-2026-115560 (GHSA-658j-r8rw-q6mx, CWE-20/CWE-502) is a serializer mismatch in the session upload progress feature. Data is written with one serializer format and read with another, so a mismatched decoder can treat part of a session key as serialized object data. With a suitable gadget chain this leads to RCE, file modification, session corruption or DoS. The upload progress feature dates to PHP 5.4.0, so older unsupported releases may also be affected. The fix disables upload progress by default. CVE-2026-126714 (GHSA-fm2m-fjf5-v3cp, CWE-367/CWE-662) is a partial-overwrite flaw in the default 'files' session handler. An interrupted write of serialized session data can leave attacker-influenced content that is deserialized when the session is next opened. This needs an application gadget chain. CVE-2026-129481 (GHSA-g3vh-838c-65v7, CWE-416/CWE-459) is a use-after-free after an interrupted session shutdown, for example a fatal error in a user-defined stream wrapper's stream_close(). PHP describes it as an incomplete fix for CVE-2026-109619 (PHP2Shell). It affects PHP 8.3 and later only; PHP 8.2 is not affected.

Engine and date: CVE-2026-129182 (GHSA-2fjv-p558-g82m, CWE-416/CWE-459, PHP 8.5 only) is a use-after-free where fatal diagnostics during later shutdown work repopulate the last_fatal_error_backtrace global after the request heap is released. It covers further exploitation scenarios of CVE-2026-109619. The advisory states RCE through these entry points has not been demonstrated. CVE-2026-129474 (GHSA-8mjj-2r7p-4hg2, CWE-416, >=8.5.0 <8.5.13) is a use-after-free while collecting method arguments for a backtrace during __call()/__callStatic() calls. It requires fatal_error_backtraces=1 (default in PHP 8.5) and zend.exception_ignore_args=0; php.ini-production sets zend.exception_ignore_args=1, which blocks the path. CVE-2026-129496 (GHSA-gr4f-wgx5-jpfv, CWE-416/CWE-459, ext-date) is a timezone cache use-after-free. A startup diagnostic written to a file-based error_log leaves a stale reference that a later early-request diagnostic in a fresh worker can read. It is described for non-thread-safe builds, and the demonstrated code execution needed extra conditions (known runtime addresses and heap layout, with ASLR enabled).

PHP-FPM/LSAPI: CVE-2026-129289 (GHSA-qc49-hpvq-g2w6, CWE-444/CWE-670, sapi-fpm) is request smuggling. PHP does not discard unread request body bytes before reusing a persistent PHP-FPM or LSAPI connection, so an unauthenticated attacker can make those bytes parse as a forged FastCGI request. For PHP-FPM this allows execution of attacker-controlled PHP as the worker, running scripts outside front-end routes, spoofing client addresses and changing administrator settings that persist for later requests. The issue dates to lazy php://input handling introduced in PHP 5.6.0. Code execution through LSAPI is not established by the advisory. It affects 8.2.0 to before 8.2.36, 8.3.0 to before 8.3.37, 8.4.0 to before 8.4.28 and 8.5.0 to before 8.5.13. Mitigation is to keep backend connection reuse off (nginx fastcgi_keep_conn, Apache enablereuse) and never expose FPM/LSAPI listeners to untrusted networks.

Context: the related PHP2Shell flaws (CVE-2026-109618 and CVE-2026-109619, CVSS v4.0 9.2) were patched on 2026-10-21 in 8.5.12, 8.4.27, 8.3.36 and 8.2.35. They were exploited in the wild: honeypots recorded 35 shells on 2026-10-24, and CISA added both to KEV on 2026-10-26. SecurityWeek and the advisories do not state exploitation of the seven new CVEs. Defenders should prioritize patching because the same code areas (session shutdown, fatal-error backtrace globals) were already weaponized. No proof-of-concept or threat actor attribution is stated for these seven CVEs.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1059 Command and Scripting Interpreter
- T1499.004 Application or System Exploitation
- T1565.001 Stored Data Manipulation
- T1068 Exploitation for Privilege Escalation
- T1211 Exploitation for Defense Evasion

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Shell or Downloader Spawned by PHP-FPM / Web Server Worker - Post-Exploitation of TL-2026-6472 PHP RCE (CVE-2026-129289, CVE-2026-115560)** (`TL-2026-6472-SPL-002`)

Detects a PHP-FPM, lsphp, php-cgi, Apache or httpd process spawning a shell, downloader or scripting interpreter. Successful RCE via the TL-2026-6472 flaws (FastCGI smuggling CVE-2026-129289 executing attacker PHP as the worker, or session deserialization gadget chains CVE-2026-115560 / CVE-2026-126714) is expected to surface as child processes of the web worker, the same pattern seen in the related PHP2Shell shells. No exploitation of the seven CVEs is confirmed; this is behaviour-first coverage for the post-exploitation stage (T1190, T1059, T1059.004, T1505.003).

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1059, T1059.004, T1505.003
- **Data sources:** sysmon_for_linux, microsoft_defender_for_endpoint_linux, auditd
- **Severity:** high
- **Confidence:** medium

### Splunk SPL

```spl
index=os sourcetype="sysmon:linux" EventCode=1 (ParentImage="*/php-fpm*" OR ParentImage="*/php-cgi" OR ParentImage="*/lsphp*" OR ParentImage="*/apache2" OR ParentImage="*/httpd") (Image="*/sh" OR Image="*/bash" OR Image="*/dash" OR Image="*/curl" OR Image="*/wget" OR Image="*/nc" OR Image="*/ncat" OR Image="*/python3" OR Image="*/perl") | stats count AS spawns earliest(_time) AS first_seen values(CommandLine) AS command_lines by host User ParentImage Image | convert ctime(first_seen) | sort - spawns
```

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName startswith 'php-fpm' or InitiatingProcessFileName in~ ('php-cgi', 'lsphp', 'apache2', 'httpd')
| where FileName in~ ('sh', 'bash', 'dash', 'curl', 'wget', 'nc', 'ncat', 'python3', 'perl')
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine
| order by Timestamp desc
```

### Sigma

```yaml
title: Shell or Downloader Spawned by PHP Web Worker
id: d6a4f5e7-8b9c-42a3-9dc4-e5f6a7b8c904
status: experimental
description: Detects PHP-FPM, lsphp, php-cgi, Apache or httpd processes spawning a shell, downloader or interpreter, expected after RCE through the TL-2026-6472 PHP flaws (for example CVE-2026-129289 FastCGI smuggling or session deserialization gadget chains).
references:
  - https://github.com/php/php-src/security/advisories/GHSA-qc49-hpvq-g2w6
  - https://github.com/php/php-src/security/advisories/GHSA-658j-r8rw-q6mx
  - https://www.securityweek.com/php2shell-exploitation-moves-from-probes-to-working-shells/
author: Threadlinqs Team
date: 2026/11/19
tags:
  - attack.initial_access
  - attack.t1190
  - attack.execution
  - attack.t1059.004
  - attack.persistence
  - attack.t1505.003
  - cve.2026.129289
  - cve.2026.115560
logsource:
  category: process_creation
  product: linux
detection:
  parent_fpm:
    ParentImage|contains:
      - '/php-fpm'
      - '/php-cgi'
      - '/lsphp'
  parent_apache:
    ParentImage|endswith:
      - '/apache2'
      - '/httpd'
  child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/curl'
      - '/wget'
      - '/nc'
      - '/ncat'
      - '/python3'
      - '/perl'
  condition: (parent_fpm or parent_apache) and child
falsepositives:
  - Applications that legitimately shell out (image conversion, PDF generation, git or backup wrappers)
  - Apache CGI scripts and mod_cgi handlers
level: high
```

**Known false positives:**

- Applications that legitimately shell out from PHP (ImageMagick, wkhtmltopdf, git or backup wrappers)
- Apache mod_cgi / suexec scripts that start shells by design

**Tuning notes:** Build an allow-list of (ParentImage, CommandLine) pairs from a 14-day baseline per application and exclude them. Raise priority when the child is curl/wget/nc or the command line contains an IP or pipe to sh. Replace sourcetype with the one used for Sysmon for Linux or auditd execve with parent process enrichment.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Fatal Error in User-Defined Stream Wrapper stream_close() During PHP Session Shutdown - CVE-2026-129481 (locked: unlock with TL Creds)
- PHP Session File Tampering and Web-Worker [indicator] Writes - CVE-2026-126714 / CVE-2026-115560 Session Abuse (locked: unlock with TL Creds)
- Execution of Community-Reported PHP2Shell / RedTail Dropper Payload Hashes (Related to TL-2026-6472) (locked: unlock with TL Creds)
- nginx Unexpected FastCGI Record From [indicator] Upstream - CVE-2026-129289 Request Smuggling (locked: unlock with TL Creds)
- PHP CLI Inline Code Execution With Command-Execution Functions - Web Shell / Gadget-Chain Follow-On to TL-2026-6472 (locked: unlock with TL Creds)
- curl/wget Dropper Piped to Shell or Fetching From Community-Observed PHP2Shell / RedTail Hosts (Related to TL-2026-6472) (locked: unlock with TL Creds)
- PHP Worker Crash Burst (SIGSEGV) - CVE-2026-129481 / CVE-2026-129182 / CVE-2026-129496 Memory-Corruption Exploitation (locked: unlock with TL Creds)
- Outbound Connection to Community-Observed PHP2Shell / RedTail Dropper Infrastructure (Related to TL-2026-6472) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [SecurityWeek: PHP Patches Seven Critical RCE Vulnerabilities](https://www.securityweek.com/php-patches-seven-critical-rce-vulnerabilities/)
- [PHP.net 2026 news archive (8.6.0, 8.5.13, 8.4.28, 8.3.37, 8.2.36 releases)](https://www.php.net/archive/2026.php)
- [GHSA-658j-r8rw-q6mx: Session serializer mismatch can lead to RCE (CVE-2026-115560)](https://github.com/php/php-src/security/advisories/GHSA-658j-r8rw-q6mx)
- [GHSA-g3vh-838c-65v7: Use-after-free after interrupted session shutdown (CVE-2026-129481)](https://github.com/php/php-src/security/advisories/GHSA-g3vh-838c-65v7)
- [GHSA-2fjv-p558-g82m: Use-after-free via last_fatal_error_backtrace (CVE-2026-129182)](https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m)
- [GHSA-8mjj-2r7p-4hg2: Use-after-free in magic method backtraces (CVE-2026-129474)](https://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2)
- [GHSA-fm2m-fjf5-v3cp: Partially overwritten session files can lead to RCE (CVE-2026-126714)](https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp)
- [GHSA-qc49-hpvq-g2w6: PHP-FPM request smuggling through unread HTTP request body (CVE-2026-129289)](https://github.com/php/php-src/security/advisories/GHSA-qc49-hpvq-g2w6)
- [GHSA-gr4f-wgx5-jpfv: Timezone cache use-after-free can lead to RCE (CVE-2026-129496)](https://github.com/php/php-src/security/advisories/GHSA-gr4f-wgx5-jpfv)
- [SecurityWeek: PHP2Shell exploitation moves from probes to working shells](https://www.securityweek.com/php2shell-exploitation-moves-from-probes-to-working-shells/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6472
