# F5 BIG-IP Remote Code Execution Vulnerability (CVE-2026-126714) - PHP ext-session partial session-file overwrite (phpAftershell)

> HKCERT (2026-11-23) rates an F5 BIG-IP remote code execution flaw tracked as CVE-2026-126714 as High Risk, affecting BIG-IP 17.1.0-17.1.3, 17.5.0-17.5.1 and 21.1.0, with an F5 workaround in K000164320. NVD and the PHP project define this CVE as a flaw in PHP's default 'files' session handler (phpAftershell), so the BIG-IP exposure appears to come from the bundled PHP; no in-the-wild exploitation is stated in any source.

- **Published:** 2026-11-23T03:12:17Z
- **Last reviewed:** 2026-11-23T03:12:17Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6662
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6662.png
- **ID:** TL-2026-6662
- **Severity:** HIGH (CVSS 9.2)
- **Category:** VULNERABILITY
- **Status:** MONITORING
- **Detections:** 9 (1 shown free below) · **IOCs:** 8 (1 shown free below)
- **CVEs:** CVE-2026-126714

## Description

SOURCE CONFLICT / CAVEATS (read first): The HKCERT bulletin (https://www.hkcert.org/security-bulletin/f5-big-ip-remote-code-execution-vulnerability_20261123) describes 'a vulnerability in F5 BIG-IP' with CVE-2026-126714, impact Remote Code Execution, risk High, affecting BIG-IP (all modules) 17.1.0-17.1.3, 17.5.0-17.5.1 and 21.1.0, and states that PoC exploit code is publicly available and that a remote authenticated attacker may execute arbitrary system commands, create or delete files, or disable services. The bulletin does not describe the root cause, give a CVSS score, link the PoC, or list a fixed BIG-IP version; it points only to the F5 workaround article K000164320. That F5 article could not be read (it renders only via JavaScript), so the BIG-IP-specific details were not verified from the vendor. NVD (published 2026-11-19, status 'Awaiting Analysis') and the PHP project's advisory GHSA-fm2m-fjf5-v3cp assign CVE-2026-126714 to PHP ext-session, not to a BIG-IP-native component. No fetched page (PHP advisory, depthfirst writeup, Ubuntu, Red Hat, Semgrep PR) mentions F5 or BIG-IP. A third-party tracker states BIG-IP bundles PHP in its Configuration utility, which is consistent with the identical version ranges, but that tracker discusses a different PHP CVE pair (CVE-2026-109618/109619) and was last updated 2026-10-25. The most defensible reading is that BIG-IP's bundled PHP exposes the upstream PHP flaw; this is an inference, not a vendor-confirmed statement.

UPSTREAM TECHNICAL DETAIL (PHP advisory GHSA-fm2m-fjf5-v3cp and depthfirst 'phpAftershell' writeup, both 2026-11-19): PHP's default session.save_handler=files updates an existing session file in place (ps_files_write() writes new serialized data over the old file via pwrite() at offset 0 and truncates with ftruncate()) without clearing it first. If the worker is interrupted mid-update, the file holds a prefix of the new session joined to the tail of the old one. On the next session_start() PHP unserializes the mixed content, so bytes of an ordinary string can be parsed as serialized objects. Effects range from session state tampering (identity, authorization, CSRF values) to object injection and, with a usable gadget chain, code execution with the PHP worker's privileges. The advisory names trigger paths: session upload progress via multipart uploads (RFC 1867 callback), large user-controlled strings stored in a session, and, in threaded builds, a hard memory-limit failure in another thread killing the process mid-write. depthfirst describes two variants (A: worker killed during the buffered pwrite(), reachable via memory pressure causing an OOM kill; B: worker killed between a complete shorter pwrite() and ftruncate(), with the timing window widened using a multipart field name with repeated bracket notation). Remote calibration uses three requests per attempt (carrier POST, replacement POST, consumer GET calling session_start()); depthfirst reports success on attempt 10-11 in its tests. The demonstrated gadget is a PHP-native class decoder memory-corruption primitive whose specifics are withheld for coordinated disclosure. The flaw is stated to affect PHP since 4.1.0 (by code inspection). Fix: truncate the session file to zero before writing and abort if truncation fails.

EXPLOITATION STATUS: No source states in-the-wild exploitation. CISA's SSVC entry in NVD (2026-11-20) records exploitation 'none', automatable 'yes', technical impact 'total'. CISA KEV membership could not be confirmed (only the first catalog page was readable). depthfirst states no exploit code or repository is published (only a benign stdClass proof and a demonstration video), which conflicts with HKCERT's statement that PoC code is public; treat PoC availability as unverified. Authentication requirements depend on how the application exposes session operations; Red Hat describes the attacker as unauthenticated while HKCERT describes the BIG-IP case as authenticated.

SEVERITY NOTE: Upstream CVSS v4.0 is 9.2 Critical (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H). Red Hat scores CVSS v3.1 8.1 (AV:N/AC:H). This record keeps HKCERT's High rating for the BIG-IP exposure and records the upstream v4.0 score.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1078 Valid Accounts
- T1059 Command and Scripting Interpreter
- T1489 Service Stop
- T1565.001 Stored Data Manipulation

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

**CVE-2026-126714 phpAftershell Carrier/Replacement/Consumer Request Sequence Against BIG-IP PHP Endpoints** (`TL-2026-6662-SPL-001`)

Detects the remote calibration pattern published for phpAftershell (CVE-2026-126714): one client repeatedly sending POST (carrier and replacement) and GET (session_start consumer) requests to the same few PHP or Configuration utility endpoints within minutes, attempting to interrupt a PHP session-file overwrite and splice old and new serialized session data. Behaviour-first: it needs no payload signature and works on plain HTTP access logs.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1078, T1565.001
- **Data sources:** web access logs (index=web, sourcetype=access_combined), F5 CommonSecurityLog (CEF), webserver logsource
- **Severity:** high
- **Confidence:** medium

### Splunk SPL

```spl
index=web sourcetype=access_combined (uri_path="*.php" OR uri_path="/tmui/*") (method=POST OR method=GET)
| bin _time span=5m
| stats count(eval(method="POST")) AS post_count count(eval(method="GET")) AS get_count dc(uri_path) AS distinct_paths values(uri_path) AS paths BY _time src host
| where post_count>=6 AND get_count>=3 AND distinct_paths<=3
| eval detection="TL-2026-6662 CVE-2026-126714 phpAftershell carrier-replacement-consumer sequence"
| table _time src host post_count get_count distinct_paths paths detection
```

### Microsoft KQL

```kql
CommonSecurityLog
| where TimeGenerated > ago(24h)
| where DeviceVendor =~ 'F5'
| where RequestMethod in ('POST','GET')
| where RequestURL has_any ('.php','/tmui/')
| summarize Posts=countif(RequestMethod =~ 'POST'), Gets=countif(RequestMethod =~ 'GET'), DistinctUrls=dcount(RequestURL), Urls=make_set(RequestURL, 10) by SourceIP, DeviceName, bin(TimeGenerated, 5m)
| where Posts >= 6 and Gets >= 3 and DistinctUrls <= 3
| project TimeGenerated, DeviceName, SourceIP, Posts, Gets, DistinctUrls, Urls
```

### Sigma

```yaml
title: F5 BIG-IP PHP Multipart POST Against Configuration Utility (CVE-2026-126714 phpAftershell)
id: 6f1c2a54-3b7e-4d1a-9c52-8a0e7d41b601
status: experimental
description: Detects multipart/form-data POST requests to PHP or Configuration utility endpoints, the carrier/replacement request used by phpAftershell (CVE-2026-126714) calibration. Pair with a Sigma event_count correlation (6 or more per c-ip in 5 minutes) to reduce noise.
references:
  - https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp
  - https://depthfirst.com/research/phpaftershell
  - https://www.hkcert.org/security-bulletin/f5-big-ip-remote-code-execution-vulnerability_20261123
author: Threadlinqs Team
date: 2026/11/23
tags:
  - attack.initial-access
  - attack.t1190
  - attack.t1078
  - cve.2026.126714
logsource:
  category: webserver
detection:
  selection:
    cs-method: 'POST'
    c-uri|contains:
      - '.php'
      - '/tmui/'
    cs-content-type|contains: 'multipart/form-data'
  condition: selection
falsepositives:
  - Legitimate file uploads through the Configuration utility by administrators
level: medium
```

**Known false positives:**

- Administrators or scripts performing bulk configuration or file uploads through the Configuration utility
- Vulnerability scanners or load tests hitting PHP endpoints with mixed GET/POST traffic

**Tuning notes:** Adjust sourcetype/index to where BIG-IP httpd access logs land. Raise post_count/get_count thresholds or exclude management-network sources and approved scanners. Research reports roughly 10-11 attempts of three requests each, so the 5 minute window can be widened if the attacker throttles.

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

- PHP Session Upload-Progress Multipart Abuse Markers in BIG-IP Web Traffic (phpAftershell) (locked: unlock with TL Creds)
- PHP Session File Created or Modified by Non-PHP Process (Session Tampering, phpAftershell) (locked: unlock with TL Creds)
- Repeated Apache/PHP Worker Crashes (Child Exit Signal) Consistent with Interrupted Session Write (locked: unlock with TL Creds)
- Burst of HTTP 5xx Responses From BIG-IP PHP Endpoints From a Single Client (locked: unlock with TL Creds)
- BIG-IP httpd Service Stop or Restart via tmsh/bigstart (Service Disruption) (locked: unlock with TL Creds)
- Kernel OOM Kill or PHP Memory Exhaustion on httpd Workers (phpAftershell Variant A Trigger) (locked: unlock with TL Creds)
- PHP/httpd Worker Account Executing Shell or Download Tool (CVE-2026-126714 Post-Exploitation) (locked: unlock with TL Creds)
- PHP/httpd Worker Outbound Connection to External Address (CVE-2026-126714 Post-Exploitation C2) (locked: unlock with TL Creds)

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

## Sample indicators (1 of 8)

Defanged, TLP:CLEAR.

- File hash: `c2b02f24dffae346eef347db8a3323fbbe0f43fa`

Full set of 8 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [HKCERT: F5 BIG-IP Remote Code Execution Vulnerability](https://www.hkcert.org/security-bulletin/f5-big-ip-remote-code-execution-vulnerability_20261123)
- [F5 vendor article K000164320 (workaround)](https://my.f5.com/manage/s/article/K000164320)
- [NVD: CVE-2026-126714](https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-126714)
- [PHP advisory GHSA-fm2m-fjf5-v3cp: Partially overwritten session files can lead to remote code execution](https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp)
- [depthfirst: phpAftershell research writeup](https://depthfirst.com/research/phpaftershell)
- [Ubuntu Security: CVE-2026-126714](https://ubuntu.com/security/CVE-2026-126714)
- [Red Hat: CVE-2026-126714](https://access.redhat.com/security/cve/cve-2026-126714)
- [Semgrep detection-scripts PR #14: phpAftershell PHP critical-release exposure detection](https://github.com/semgrep/detection-scripts/pull/14)
- [php-src commit c2b02f24dff (truncate-ordering change referenced by depthfirst)](https://github.com/php/php-src/commit/c2b02f24dffae346eef347db8a3323fbbe0f43fa)
- [phpvulnerabilities.app: Is F5 BIG-IP affected by PHP2Shell? (third-party, different PHP CVEs, BIG-IP bundles PHP)](https://phpvulnerabilities.app/affected-products/f5-big-ip/)

## 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 and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

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