Feb 12, 2026·5 min read·75 visits
In worker mode, FrankenPHP < 1.11.2 failed to clear `$_SESSION` between requests. If a script accessed session data before calling `session_start()`, it would read the previous user's session from memory. Fixed in 1.11.2.
FrankenPHP, the modern application server that brings Go-like performance to PHP, suffered from a critical session isolation flaw in its worker mode. By failing to correctly scrub the global symbol table between requests, the server allowed the `$_SESSION` superglobal to persist across different HTTP requests handled by the same worker thread. This effectively turned the server into a game of Russian Roulette where one user's private data could be served to the next user merely by luck of the draw.
FrankenPHP is the cool kid on the block. It embeds the PHP interpreter directly into Caddy (a Go-based web server), allowing PHP to run like a long-lived application rather than the traditional "die-after-every-request" CGI model. This is called Worker Mode, and it’s blazing fast. It bypasses the repetitive initialization overhead of standard PHP-FPM.
But here's the catch: When you keep the PHP engine alive, you become responsible for taking out the trash. In the standard model, the OS destroys the process memory, guaranteeing a clean slate for the next request. In worker mode, variables, globals, and static properties persist in memory unless explicitly reset.
If the server logic forgets to scrub even one superglobal, that data sits in RAM, waiting for the next request to stumble upon it. It’s like a hotel implementation where the maid changes the towels but forgets to change the sheets between guests. CVE-2026-24894 is exactly that: a dirty sheet left on the bed of a high-performance application server.
The vulnerability lies in how FrankenPHP handles the $_SESSION superglobal during its "reset" phase. PHP's Zend Engine uses a global symbol table (EG(symbol_table)) to track variables. When a request ends in worker mode, FrankenPHP runs a function to wipe the slate clean. It diligently cleared $_GET, $_POST, $_COOKIE, and others.
However, it missed one critical VIP: $_SESSION.
The PHP Session extension's request shutdown logic (RSHUTDOWN) does decrement the reference count of the session array, but—and this is the crucial technical nuance—it does not remove the string key _SESSION from the symbol table. It just leaves it there, dangling or pointing to the old data structure until the next session_start() call overwrites it.
This creates a race condition of logic. If the next request (processed by the same worker thread) accesses $_SESSION before initializing its own session, it doesn't get null or an empty array. It gets the full, unredacted session array of the previous user. This is a classic "object reuse" vulnerability, but at the scope of the entire HTTP request context.
The fix is embarrassingly simple, as most critical security patches are. The developers had to manually intervene in the Zend Engine's symbol table to force the eviction of the session variable.
Here is the essence of the patch applied in commit 24d6c991a7761b638190eb081deae258143e9735. Notice the explicit deletion call added to frankenphp.c:
static void frankenphp_reset_super_globals() {
// ... existing resets for $_GET, $_POST ...
/*
* The Fix: explicitly nuke _SESSION from orbit.
* Unlike other superglobals, the engine doesn't auto-clean this
* deep enough for worker mode.
*/
zend_hash_str_del(&EG(symbol_table), "_SESSION", sizeof("_SESSION") - 1);
}Before this line was added, the _SESSION symbol persisted. By adding zend_hash_str_del, the server ensures that even if the PHP extension leaves artifacts behind, the variable itself is removed from the scope, forcing the next request to start fresh.
Exploiting this requires no authentication, no special headers, and no complex race conditions—just a busy server and a bit of luck (or volume). The attack relies on the victim and the attacker landing on the same worker thread sequentially.
Step 1: The Victim (Alice) Alice logs into the application. The app sets her user ID and a sensitive token in the session.
// Alice's Request
session_start();
$_SESSION['user_id'] = 42;
$_SESSION['api_token'] = 'x8s7df6...';
// Request ends, but worker keeps memory alive.Step 2: The Attacker (Bob) Bob sends a request to an endpoint that checks for session existence before starting a session. This is common in logging middleware, analytics scripts, or sloppy authentication checks.
// Bob's Request (landing on the same worker)
// session_start() has NOT been called yet.
if (isset($_SESSION['api_token'])) {
// This should be false. But thanks to the bug, it's TRUE.
log_hack("Leaked token: " . $_SESSION['api_token']);
}In a high-traffic environment, an attacker could simply spam requests to a "echo" endpoint and harvest session tokens, PII, or internal state variables from random users across the platform.
The CVSS score of 8.7 is justified. This isn't just a data leak; it's potential total account takeover. If your application stores authentication state, role permissions, or API keys in $_SESSION, an unauthenticated attacker can effectively "become" an administrator simply by hitting the server at the right millisecond.
Furthermore, because this happens in memory, there are no logs of the data transfer. The web server logs will show normal HTTP 200 OK responses. There is no intrusion signature, no SQL injection pattern, and no malware to scan for. It is a silent bleed of the application's most trusted memory segment.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
FrankenPHP Dunglas | < 1.11.2 | 1.11.2 |
| Attribute | Detail |
|---|---|
| CVSS Score | 8.7 (High) |
| Attack Vector | Network |
| CWE ID | CWE-200 (Info Exposure) / CWE-668 |
| Architecture | x86/ARM (Go/C) |
| Component | frankenphp_reset_super_globals |
| Exploit Status | PoC Available |
Exposure of Resource to Wrong Sphere
NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.
CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.
CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.
CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.
A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.
CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.