{"id":"CVE-2026-24894","aliases":["CVE-2026-24894","GHSA-r3xh-3r3w-47gp","GO-2026-4489"],"related":[],"kind":"vulnerability","state":"published","title":"FrankenPHP leaks session data between requests in worker mode","summary":"FrankenPHP is a modern application server for PHP. Prior to 1.11.2, when running FrankenPHP in worker mode, the $_SESSION superglobal is not correctly reset between requests. This allows a subsequent request processed by the same worker to access the $_SESSION data of the previous request (potentially belonging to a different user) before session_start() is called. This vulnerability is fixed in 1.11.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"FrankenPHP is a modern application server for PHP. Prior to 1.11.2, when running FrankenPHP in worker mode, the $_SESSION superglobal is not correctly reset between requests. This allows a subsequent request processed by the same worker to access the $_SESSION data of the previous request (potentially belonging to a different user) before session_start() is called. This vulnerability is fixed in 1.11.2.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nWhen running FrankenPHP in **worker mode**, the `$_SESSION` superglobal is not correctly reset between requests. This allows a subsequent request processed by the same worker to access the `$_SESSION` data of the previous request (potentially belonging to a different user) before `session_start()` is called.\n\n### Details\n\nIn standard PHP execution, the environment is torn down completely after every request. In FrankenPHP's worker mode, the application stays in memory, and superglobals are manually reset between requests.\n\nThe vulnerability exists because `$_SESSION` is stored in the Zend Engine's symbol table (`EG(symbol_table)`). While the standard PHP request shutdown (RSHUTDOWN) decrements the reference count of the session data, it does not remove the `$_SESSION` variable itself from the symbol table. FrankenPHP's reset logic (`frankenphp_reset_super_globals`) previously cleared other superglobals but failed to explicitly delete `$_SESSION`.\n\nConsequently, until `session_start()` is called in the new request (which re-initializes the variable), the `$_SESSION` array retains the data from the previous request processed by that specific worker thread.\n\n### Impact\n\nThis is a **cross-request data leakage** vulnerability.\n\n* **Confidentiality:** If an application reads `$_SESSION` before calling `session_start()`, it can access sensitive information (authentication tokens, user IDs, PII) belonging to the previous user.\n* **Logic Errors / Impersonation:** If application logic relies on `$_SESSION` being empty or unset to detect a \"guest\" state, or checks for specific keys in `$_SESSION` prior to session initialization, a malicious actor (or accidental race condition) could trigger privilege escalation or user impersonation.\n\nThis affects only users running FrankenPHP in **worker mode** and not `session_start()` for each request, which is done by default by most frameworks.\n\n### PoC\n\nThe following steps demonstrate the issue (derived from the regression tests added in the fix):\n\n1. **Client A** sends a request that starts a session and sets sensitive data:\n\n```php\n// Request 1\nsession_start();\n$_SESSION['secret'] = 'AliceData';\nsession_write_close();\n```\n\n2. **Client B** (or the same client without cookies) sends a request to the same worker. This script checks `$_SESSION` *without* starting a session:\n\n```php\n// Request 2\n// session_start() is NOT called\nif (!empty($_SESSION)) {\n    echo \"Leaked Data: \" . $_SESSION['secret'];\n}\n```\n\n\n3. **Result:** Client B receives \"Leaked Data: AliceData\".\n\n### Workarounds\n\n* Ensure `session_start()` is called immediately at the entry point of your worker script to overwrite any residual data (though this may not cover all edge cases if middleware runs before the controller).\n* Manually unset `$_SESSION` at the very beginning of the worker loop, before handling the request.","format":"markdown","source":"ghsa"},{"lang":"en","text":"FrankenPHP leaks session data between requests in worker mode in github.com/dunglas/frankenphp","format":"markdown","source":"go"},{"lang":"es","text":"FrankenPHP es un moderno servidor de aplicaciones para PHP. Antes de la versión 1.11.2, al ejecutar FrankenPHP en modo worker, la superglobal $_SESSION no se restablece correctamente entre solicitudes. Esto permite que una solicitud subsiguiente procesada por el mismo worker acceda a los datos de $_SESSION de la solicitud anterior (potencialmente perteneciente a un usuario diferente) antes de que se llame a session_start(). Esta vulnerabilidad se corrige en la versión 1.11.2.","source":"nvd"}],"published":"2026-02-12T15:29:30.000Z","modified":"2026-06-17T10:23:45.887Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-269","CWE-384","CWE-613"],"affected":[{"ranges":[{"version":"< 1.11.2","status":"affected"}],"vendor":"php","product":"frankenphp","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.11.2"}],"ecosystem":"Go","package":"github.com/dunglas/frankenphp","purl":"pkg:golang/github.com/dunglas/frankenphp","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.11.2"}],"ecosystem":"Go","package":"github.com/dunglas/frankenphp","purl":"pkg:golang/github.com/dunglas/frankenphp","source":"go"},{"ranges":[{"status":"affected","fixed":"1.11.2"}],"vendor":"php","product":"frankenphp","cpe":"cpe:2.3:a:php:frankenphp:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/php/frankenphp/security/advisories/GHSA-r3xh-3r3w-47gp","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/php/frankenphp/commit/24d6c991a7761b638190eb081deae258143e9735","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/php/frankenphp/releases/tag/v1.11.2","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24894","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/php/frankenphp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-02-12T20:04:24.224Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-24894","url":"https://www.cve.org/CVERecord?id=CVE-2026-24894","licence":"CVE Terms of Use","modified":"2026-02-12T20:04:57.869Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r3xh-3r3w-47gp","url":"https://github.com/advisories/GHSA-r3xh-3r3w-47gp","licence":"CC-BY-4.0","modified":"2026-02-19T20:41:22.841Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4489","url":"https://pkg.go.dev/vuln/GO-2026-4489","licence":"CC-BY-4.0","modified":"2026-02-19T20:41:22.841Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-24894","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24894","licence":"Public domain","modified":"2026-06-17T10:23:45.887Z"}],"updatedAt":"2026-11-25T22:59:13.826Z","epss":{"score":0.0049,"percentile":0.43723,"date":"2026-12-01T12:00:22.000Z"}}