Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-126714: PHPAfterShell

Published Nov 19, 2026 · Updated today
Trending this week#12of 434,997 vulnerabilities
Mention activity · 30 daysAt least 200 mentions · peak 53 in a dayToday
CVSS9.2Critical · v4
EPSS32.1%99th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
PHP Group
IdentifiersCVE-2026-126714CWE-367 · Time-of-check Time-of-use (TOCTOU)…

PHPAfterShell is an object-injection vulnerability in PHP's default file-based session save handler. Updated serialized session data is written over the existing session file without first clearing its contents. If writing is interrupted at a suitable point, the file can retain a prefix of the new session followed by a suffix of the previous session. When subsequently decoded, bytes originally contained within an ordinary string can be interpreted as serialized objects. An attacker who can influence session contents and interrupt a replacement write may trigger object injection and, if a suitable application gadget chain exists, remote code execution. Session data can also be corrupted. Affected upstream versions are PHP before 8.2.36, PHP 8.3 before 8.3.37, PHP 8.4 before 8.4.28, and PHP 8.5 before 8.5.13. Other session storage implementations are not affected by this specific file-write defect.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can execute arbitrary code with the PHP worker's privileges, compromising application data confidentiality and integrity and disrupting service availability. The vulnerability can also corrupt session state independently of successful code execution. On affected F5 BIG-IP systems, exposure is through authenticated TMUI/Configuration utility functionality and may permit arbitrary system commands, file creation or deletion, and service disruption; it does not inherently confer root privileges in every deployment.

Mitigation

If you can’t patch tonight, do this now.

Administratively disable session.upload_progress.enabled when upload-progress tracking is unnecessary, and minimize untrusted data stored in sessions. Disabling upload progress removes one input path but does not protect applications that independently store attacker-controlled session data. A session backend that replaces records atomically avoids this specific file-write defect. For affected BIG-IP deployments, restrict Configuration utility access to trusted users and devices over secure networks, block its port on self IPs where feasible, and restrict management-interface access. These measures reduce exposure but do not replace patching.

Remediation

Patch, then assume compromise.

Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13, or a later fixed release in the corresponding branch. The fix truncates the session file to zero before writing replacement data and aborts the write if truncation fails, preventing retention of an exploitable old-data suffix. Restart PHP-serving services after updating, and rebuild and redeploy affected container images or custom runtimes. For distribution-maintained packages, install the applicable vendor security update and verify the complete package release because fixes may be backported. For embedded appliances, use vendor-supported firmware fixes rather than treating upstream PHP releases as appliance updates; no fixed BIG-IP release is identified.

Public exploits

Exploits

4 exploits validated by Mallory's analysis. Hidden: 6 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
phpaftershell-labThis is a standalone exploit-training lab, not a framework module. The 22 supplied files include six executable source files: a Python exploit, a Bash reset script, and four PHP application/library files. Supporting material comprises Docker build/Compose definitions, vulnerable and control PHP configurations, Apache configuration, multilingual documentation, a walkthrough, and a deliberately published flag fixture. The intended chain uses stalled multipart uploads to place large attacker-controlled field names into PHP upload-progress session records. A smaller replacement session write is then arranged to preserve an older serialized tail, promoting an embedded ReportJob object into session-deserializer input. ReportJob::__wakeup() reaches the visibly unsafe system() call in LogRotator::rotate(), allowing shell-command execution. The demonstration copies /flag into the served reports directory and downloads the result. PHPSESSID, PHP_SESSION_UPLOAD_PROGRESS, and the upload_progress_ record prefix are relevant protocol/session markers. The reference Python program uses raw HTTP sockets, configurable target/container settings, retry logic, a configurable proof filename, and an expected-miss comparison mode. Crucially, its deterministic mechanism also uses docker exec and an in-container ptrace helper; it is not a purely remote HTTP exploit. Documentation describes a separate unprivileged HTTP cleanup-path variant, but that implementation is not supplied in full. The control disables upload progress, removing the carrier used by this chain. Static evidence supports the application gadget and intended exploit design, but does not independently establish the claimed PHP vulnerability or fix. The CVE identifier and claims about PHP 8.4.28 defaults are repository assertions. The walkthrough contains inconsistent syscall-order explanations, exploit.py is truncated, and the Dockerfile references a missing zap binary; the supplied tree therefore cannot be assumed buildable or operational as-is. Reported smoke-test successes were not independently verified. No external exfiltration or command-and-control service is shown. Repository URL, git reference, and archive size were not supplied; empty strings and zero represent unavailable metadata.tani2shell · Disclosed Nov 20, 2026 · python · php · web · local · containerOperationalcve-2026-126714-phpAfterShellThe supplied repository contains four Markdown documents and six executable/support scripts: two Bash scripts, three Python files, and one PHP file. It presents a laboratory exploit for the claimed CVE-2026-126714, involving non-atomic PHP file-session overwrites. A long carrier string contains a dormant serialized object positioned so that a shorter replacement string's declared ending aligns with it. Interrupting the overwrite can preserve the old suffix and expose an evil session record, potentially causing object injection and gadget-based command execution on a later request. poc/http_attack.py implements carrier POST, multipart replacement POST, and consumer GET requests, with retries and response-based success checks. poc/build_body.py constructs equivalent bodies for poc/attack.sh. The shell driver and poc/agent.sh use Docker access to kill Apache workers when a session-file prefix changes. poc/tp_chain_builder.php builds and self-tests an optional ThinkPHP gadget graph. poc/verify_unit.py constructs synthetic splices. README.md and docs/ describe the proposed mechanism, laboratory results, mitigations, and limitations. Important qualifications: the supplied exploit is a prepared-lab implementation, not a demonstrated standalone unauthenticated remote exploit. Reliable interruption requires privileged server-side assistance; an unassisted HTTP/OOM attack is described but not implemented. The client also writes a local SID file, so operation from a separate machine needs coordination beyond HTTP. Target application files, the FileLogger gadget, ThinkPHP dependencies, and custom bridge classes are missing. The ThinkPHP chain therefore does not establish generic exploitation of stock ThinkPHP 5.0.24. The supplied unit test does not validate its claimed object-injection result: it calls unserialize() only on the first session value, which should decode the note string, rather than decoding subsequent session records. Documentation and claimed evidence should not be treated as independently verified execution results. The CVE assignment, affected-version scope, and claimed fixed versions likewise cannot be confirmed from these files alone. No external callback or exfiltration infrastructure appears in the code. Repository URL, git reference, and archive size were not provided; empty metadata and size 0 represent unavailable values. Listed file sizes total 32,785 bytes.evenomn · Disclosed Nov 20, 2026 · bash · python · web · localOperationalPHPAfterShell-pocThe supplied repository contains a standalone exploit implementation and a deliberately instrumented PHP/Apache laboratory. Its claimed vulnerability is CVE-2026-126714: interruption of an in-place session-file rewrite leaves a new-state prefix followed by an old-state suffix. Carefully arranged serialization lengths then promote bytes previously stored inside a string into a top-level FileCache object. The bundled destructor writes a PHP command webshell. The CVE assignment, affected versions, advisory, and claimed fixes are repository assertions and were not independently verified. Of 16 listed files, eight contain Python or PHP source; Bash also appears in CI and container startup commands. The Python launcher delegates to poc/remote.py, which uses plain TCP sockets for HTTP, held multipart uploads, seven memory-pressure filler connections, and an oracle-driven retry controller. It is not a generic HTTPS client. poc/lab.py supplies serialization geometry, payload construction, HTTP helpers, and Docker/cgroup support. Stage 1 directly writes the mixed session state and therefore demonstrates parser behavior rather than remote interruption. Stage 2 attempts real OOM interruption using privileged local control and page-cache eviction. tests/test_geometry.py contains offline serialization, splice-window, request-size, and classifier tests. app/index.php deliberately supplies session bio storage, JSON object and raw-file diagnostics, and a session-deletion helper; app/gadget.php supplies the exploitable destructor. These application-specific dependencies materially qualify the claim of application-independent HTTP-only RCE. Docker Compose provides a 64 MiB vulnerable container, a claimed patched control, and an upload-progress-disabled control, all exposed only on loopback. The targets share the application directory, so a dropped webshell can be visible across controls and must not be mistaken for independent exploitation. Apache tuning, mitigation configuration, documentation, licensing, and CI complete the repository. No external callback or exfiltration destination is visible. This is exploit code rather than merely a detector, with no clear evidence of a fake-exploit trap. However, lab.py, remote.py, and stage2_oom.py were partially truncated in the supplied material, and neither execution nor test results were provided, so end-to-end reliability remains unverified. Repository URL, Git reference, and archive size were not supplied; empty metadata strings and size 0 represent unavailable information.VABISMO · Disclosed Nov 20, 2026 · python · php · web · localOperationalCVE-2026-PHP-SESSION-CHAINThe 37-file repository contains 12 Python scripts, 15 PHP files, a Docker Compose lab, documentation, and supporting text/configuration files. It is a standalone exploit-development and reconnaissance collection using external phpggc payload generation, not a Metasploit or Nuclei module. Repository URL, revision, and archive size were not provided; empty metadata and zero size indicate unavailable values. The two implemented paths converge on PHP session deserialization: a php_serialize-to-php serializer mismatch, and a partial session-file overwrite intended to leave replacement-prefix || carrier-tail. Lab Gadget destructors write evidence files. The more capable payload uses Guzzle/FW1 semantics to write a PHP command shell. The PHP Guzzle classes included in the lab are explicitly minimal reimplementations, so documentation describing validation against an actual installed Guzzle library overstates what these files establish. CVE-2026-129474 is discussed but has no implemented exploit here. CVE identifiers, advisory claims, version boundaries, and reported outcomes are repository assertions, not independently verified findings. lab/ defines vulnerable, limited-write, and claimed patched containers sharing one session volume, plus carrier writers, serializer producers, read-only decoding oracles, and marker gadgets. payloads/ contains a deterministic splice-geometry builder and search queries. tools/ contains verification and repeatability harnesses, the Guzzle chain, FOFA acquisition/deduplication, threaded framework scanning, session-cookie checks, reporting, and a live shell attempt. notes/ records analysis and claimed experiments. Target lists and execution artifacts are excluded. Important implementation limits materially weaken the results. live_shell.py does not implement the interruption mechanism its description promises: it sends two ordinary POSTs and then checks candidate readers. Its shorter replacement write does not establish preserved carrier bytes. Serialized object quotes are embedded unescaped in a multipart filename, a failure already acknowledged elsewhere in the repository. The generated file-write destination is filesystem root rather than a discovered writable webroot. Nevertheless, unsuccessful attempts are labeled VULN without observing any splice. Framework fingerprints establish neither gadget availability nor autoloading, and progress_alive accepts any response below HTTP 500 without requiring the PHPSESSID signal it separately collects. The main scanner can label unknown-version hosts READY. Cookie-only session detection is also heuristic, not proof of reader absence or shared-store behavior. The supplied lab scripts are not clean reproductions as written: several URLs retain TARGET.example placeholders, some concatenate ports incorrectly, and multiple splice scripts send replacements through the unconstrained vulnerable container. In verify_all.py, the port_limited parameter is unused and both vulnerable and patched cases send the replacement to the same vulnerable phpsess-limited service; reading through the patched container does not validate its file-writing fix. Some result checks also search for PWN-OBJECT although the invoked oracle emits PWNMARK. These defects prevent accepting the claimed negative controls without correction and independent reruns. The documentation reports controlled-lab marker creation and webshell execution, but ultimately reports zero live shells and retracts earlier broad exploitability estimates. No supplied target lists, scan evidence, real victim addresses, callback infrastructure, or credential-stealing behavior substantiate the population claims. The repository contains genuine exploit logic and a basic payload, warranting OPERATIONAL classification for its intended controlled-lab capability, but it is not a demonstrated reliable remote exploit.im0xfay · Disclosed Nov 24, 2026 · python · php · webOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
PHP GroupPhpapplication
FAQ

Frequently asked questions

Is CVE-2026-126714 exploited in the wild?
As of Nov 28, 2026, Mallory has no reports of CVE-2026-126714 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-126714?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2026-126714, the earliest disclosed Nov 20, 2026.
Is there a patch for CVE-2026-126714?
Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13, or a later fixed release in the corresponding branch. The fix truncates the session file to zero before writing replacement data and aborts the write if truncation fails, preventing retention of an exploitable old-data suffix.
What products are affected by CVE-2026-126714?
PHP Group Php.
How severe is CVE-2026-126714?
CVE-2026-126714 has a CVSS v4 score of 9.2 (Critical) and an EPSS score of 32.1% (99th percentile) as of Nov 28, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity69Community discussion across Reddit, Mastodon, and other social sources.