Threat reportVulnerabilityTL-2026-6662
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.
Key facts
| Identifiers | TL-2026-6662, CVE-2026-126714 |
|---|---|
| Also known as | phpAftershell |
| Severity | HIGH |
| CVSS | 9.2 (CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N) |
| First disclosed | |
| Affected products | F5 BIG-IP (all modules); PHP Group PHP (ext-session, files save handler) |
| Weaknesses (CWE) | CWE-367, CWE-662, CWE-502 |
| Malware | PHP |
| MITRE ATT&CK techniques | T1059 Command and Scripting Interpreter, T1078 Valid Accounts, T1190 Exploit Public-Facing Application, T1489 Service Stop, T1565.001 Stored Data Manipulation |
| Motivation | UNKNOWN |
| Detection rules | 9 (1 shown free) |
| Sources | 10 cited sources |
Detection coverage
As of 2026-11-23, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-6662 across Splunk SPL, Microsoft KQL and Sigma, covering 8 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: CVE-2026-126714 phpAftershell Carrier/Replacement/Consumer Request Sequence Against BIG-IP PHP Endpoints
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
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 detectionMicrosoft 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, UrlsSigma
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: mediumKnown 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.
- PHP Session Upload-Progress Multipart Abuse Markers in BIG-IP Web Traffic (phpAftershell) · unlock with TL Creds
- PHP Session File Created or Modified by Non-PHP Process (Session Tampering, phpAftershell) · unlock with TL Creds
- Repeated Apache/PHP Worker Crashes (Child Exit Signal) Consistent with Interrupted Session Write · unlock with TL Creds
- Burst of HTTP 5xx Responses From BIG-IP PHP Endpoints From a Single Client · unlock with TL Creds
- BIG-IP httpd Service Stop or Restart via tmsh/bigstart (Service Disruption) · unlock with TL Creds
- Kernel OOM Kill or PHP Memory Exhaustion on httpd Workers (phpAftershell Variant A Trigger) · unlock with TL Creds
- PHP/httpd Worker Account Executing Shell or Download Tool (CVE-2026-126714 Post-Exploitation) · unlock with TL Creds
- PHP/httpd Worker Outbound Connection to External Address (CVE-2026-126714 Post-Exploitation C2) · unlock with TL Creds
Indicators of compromise
As of 2026-11-23, Threadlinqs Intelligence tracks 8 indicators of compromise for TL-2026-6662.
Sample indicators (1 of 8)
- File hash:
c2b02f24dffae346eef347db8a3323fbbe0f43fa
Defanged, TLP:CLEAR. Full set of 8 indicators: unlock with TL Creds.
Technical analysis
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 techniques by tactic:
Execution
T1059 Command and Scripting Interpreter
Initial Access
T1078 Valid Accounts; T1190 Exploit Public-Facing Application
Impact
Remediation
Patches
- Upstream PHP fixed in 8.2.36, 8.3.37, 8.4.28 and 8.5.13 (released 2026-11-19); the 2026-10-21 releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35 do not contain the fix
- No fixed BIG-IP version is listed in the HKCERT bulletin
Immediate actions
- Apply the F5 workaround in K000164320 on BIG-IP 17.1.0-17.1.3, 17.5.0-17.5.1 and 21.1.0 (article content could not be retrieved; read it directly from F5)
- Restrict the BIG-IP Configuration utility to a management network, IP allowlist or VPN and keep it off self IPs and the internet (general guidance from a third-party tracker, not F5)
- Where PHP is under your control, set session.upload_progress.enabled = 0 and restart PHP workers (reduces the easiest trigger, does not fix the flaw)
Workarounds
- F5 K000164320 vendor workaround
- Disable PHP upload progress (session.upload_progress.enabled = 0) where PHP is directly managed
Longer-term hardening
- Limit the amount of untrusted data stored in PHP sessions
- Use a session storage backend that replaces records atomically (Redis, database); non-file handlers are described as not affected
- Track F5 advisories for a fixed BIG-IP release; none is listed in the HKCERT bulletin
Affected and fixed versions
Timeline
- PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 released; per depthfirst these do not contain the fix for the session-file overwrite flaw.
- php-src state used for depthfirst's affected-version table (Variant A/B behavior by release).
- NVD publishes CVE-2026-126714; Ubuntu publishes its tracker entry; Semgrep merges a read-only PHP exposure detection script (PR #14).
- depthfirst publishes the phpAftershell writeup (remote calibration, two interrupted-write variants, benign stdClass proof, demo video); no exploit code released.
- PHP project publishes GHSA-fm2m-fjf5-v3cp (CVE-2026-126714, CVSS v4.0 9.2) and fixed releases 8.5.13, 8.4.28, 8.3.37, 8.2.36.
- CISA SSVC (via NVD) records exploitation 'none', automatable 'yes', technical impact 'total'.
- NVD record last modified; status remains 'Awaiting Analysis'.
- HKCERT publishes 'F5 BIG-IP Remote Code Execution Vulnerability' (High Risk) for BIG-IP 17.1.0-17.1.3, 17.5.0-17.5.1, 21.1.0, stating PoC code is public and pointing to F5 K000164320 for the workaround.
Sources cited
- HKCERT: F5 BIG-IP Remote Code Execution Vulnerability hkcert.org · Advisory · 2026-11-23
- NVD: CVE-2026-126714 NVD (NIST) · Advisory · 2026-11-19
- PHP advisory GHSA-fm2m-fjf5-v3cp: Partially overwritten session files can lead to remote code execution GitHub · Advisory · 2026-11-19
- F5 vendor article K000164320 (workaround) my.f5.com · Vendor report
- depthfirst: phpAftershell research writeup depthfirst.com · Research · 2026-11-19
- Ubuntu Security: CVE-2026-126714 ubuntu.com · Vendor report · 2026-11-19
- Red Hat: CVE-2026-126714 access.redhat.com · Vendor report
- phpvulnerabilities.app: Is F5 BIG-IP affected by PHP2Shell? (third-party, different PHP CVEs, BIG-IP bundles PHP) phpvulnerabilities.app · Research · 2026-10-25
- Semgrep detection-scripts PR #14: phpAftershell PHP critical-release exposure detection GitHub · Code repository · 2026-11-19
- php-src commit c2b02f24dff (truncate-ordering change referenced by depthfirst) GitHub · Code repository
Other reports on CVE-2026-126714
Drafted by the Threadlinqs research pipeline from 10 sources; published ; last updated —.