{"id":"CVE-2026-82416","revision":null,"records":[{"revision":"46a6f4035b15418e843f6ad5fb1e96bc","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-82416","aliases":[],"title":"FrankenPHP: Cross-request PHP session ID leak in worker mode when the session extension is a shared module","description":"FrankenPHP is a modern application server for PHP. Prior to 1.12.5, FrankenPHP worker mode can retain PHP session state between requests when the session extension is loaded as a shared module and is unavailable through HAVE_PHP_SESSION at compile time. In this build configuration, frankenphp_reset_session_state() is compiled out, PS(id) can survive a request boundary, and a subsequent session_start() can ignore the new request's cookie because an identifier is already present. Under concurrent requests, session_id() can therefore return another client's identifier or a stale identifier from a previous request on the same worker thread, causing cross-user session exposure, possible session hijacking, and intermittent logout behavior. Builds with the session extension statically linked, including the official static binaries and Docker images, are not affected. This issue is fixed in version 1.12.5.","state":0,"publishedAt":"2026-10-13T16:20:53.439+00:00","modifiedAt":"2026-10-13T20:22:02.706+00:00","affected":[{"ecosystem":"Vendor product","name":"frankenphp","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"php\",\n                    \"product\": \"frankenphp\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 1.12.5\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","score":7.7,"severity":"HIGH"}],"references":["https://github.com/php/frankenphp/security/advisories/GHSA-v3ph-cgqh-r8p5","https://github.com/php/frankenphp/pull/2523","https://github.com/php/frankenphp/commit/be24d82531675f90862b8cde1e9fc7e9ee855aa5","https://github.com/php/frankenphp/releases/tag/caddy/v1.12.5"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-82416","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-82416","identifiers":["CVE-2026-82416"]},"retained":false,"historicalAffected":[]},{"revision":"5b71aeb9a06c45bf80363b74b72eaea1","observedAt":"2026-11-07T14:32:08.545+00:00","statement":{"source":"euvd","id":"EUVD-2026-98911","aliases":["CVE-2026-82416","GHSA-v3ph-cgqh-r8p5"],"title":"FrankenPHP is a modern application server for PHP. Prior to 1.12.5, FrankenPHP worker mode can retain PHP session state between requests when the session extension is loaded as a shared module and is unavailable through HAVE_PHP_SESSION at …","description":"FrankenPHP is a modern application server for PHP. Prior to 1.12.5, FrankenPHP worker mode can retain PHP session state between requests when the session extension is loaded as a shared module and is unavailable through HAVE_PHP_SESSION at compile time. In this build configuration, frankenphp_reset_session_state() is compiled out, PS(id) can survive a request boundary, and a subsequent session_start() can ignore the new request's cookie because an identifier is already present. Under concurrent requests, session_id() can therefore return another client's identifier or a stale identifier from a previous request on the same worker thread, causing cross-user session exposure, possible session hijacking, and intermittent logout behavior. Builds with the session extension statically linked, including the official static binaries and Docker images, are not affected. This issue is fixed in version 1.12.5.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","score":7.7,"severity":null}],"references":["https://github.com/php/frankenphp/security/advisories/GHSA-v3ph-cgqh-r8p5","https://github.com/php/frankenphp/pull/2523","https://github.com/php/frankenphp/commit/be24d82531675f90862b8cde1e9fc7e9ee855aa5","https://github.com/php/frankenphp/releases/tag/caddy/v1.12.5"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-98911","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Oct 13, 2026, 4:20:53 PM","dateUpdated":"Oct 13, 2026, 8:22:02 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-98911","identifiers":["EUVD-2026-98911","CVE-2026-82416","GHSA-v3ph-cgqh-r8p5"]},"retained":false,"historicalAffected":[]},{"revision":"62a24ce3fb0a4143acf2fe546df68e33","observedAt":"2026-10-25T16:19:10.271+00:00","statement":{"source":"nvd","id":"CVE-2026-82416","aliases":[],"title":"FrankenPHP is a modern application server for PHP. Prior to 1.12.5, FrankenPHP worker mode can retain PHP session state between requests when the session extension is loaded as a shared module and is unavailable through HAVE_PHP_SESSION at …","description":"FrankenPHP is a modern application server for PHP. Prior to 1.12.5, FrankenPHP worker mode can retain PHP session state between requests when the session extension is loaded as a shared module and is unavailable through HAVE_PHP_SESSION at compile time. In this build configuration, frankenphp_reset_session_state() is compiled out, PS(id) can survive a request boundary, and a subsequent session_start() can ignore the new request's cookie because an identifier is already present. Under concurrent requests, session_id() can therefore return another client's identifier or a stale identifier from a previous request on the same worker thread, causing cross-user session exposure, possible session hijacking, and intermittent logout behavior. Builds with the session extension statically linked, including the official static binaries and Docker images, are not affected. This issue is fixed in version 1.12.5.","state":0,"publishedAt":"2026-10-13T17:17:47.183+00:00","modifiedAt":"2026-10-16T20:04:29.76+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","score":7.7,"severity":"HIGH"}],"references":["https://github.com/php/frankenphp/commit/be24d82531675f90862b8cde1e9fc7e9ee855aa5","https://github.com/php/frankenphp/pull/2523","https://github.com/php/frankenphp/releases/tag/caddy/v1.12.5","https://github.com/php/frankenphp/security/advisories/GHSA-v3ph-cgqh-r8p5"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-82416","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-362","CWE-488"],"productCriteria":[],"sourceDates":{"published":"2026-10-13T17:17:47.183","lastModified":"2026-10-16T20:04:29.760"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-82416","identifiers":["CVE-2026-82416"]},"retained":false,"historicalAffected":[]},{"revision":"44215ab8a84e4460b6f523e2da7f1ad4","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-v3ph-cgqh-r8p5","aliases":["CVE-2026-82416","GO-2026-6797"],"title":"FrankenPHP: Cross-request PHP session ID leak in worker mode when the session extension is a shared module","description":"## Summary\nIn worker mode under concurrency, FrankenPHP can hand a PHP session id from one request to another when PHP's `session` extension is loaded as a shared module instead of being statically linked into the FrankenPHP binary. A request presenting `Cookie: session=A` can have `session_id()` resolve to `B` (a different concurrent client's id) or to a stale id from a previous request served by the same worker thread.\n\n## Impact\n- **Security:** cross-user session exposure / session hijacking in worker mode. Same impact class as CVE-2026-24894.\n- **Functional:** users are intermittently logged out; their cookie's session is ignored and they receive a foreign or empty session.\n\n## Affected / not affected\nExposure is determined by how the `session` extension is linked in the PHP build FrankenPHP is compiled against, **not** by the FrankenPHP release:\n\n- **Affected:** any build where the `session` extension is not visible to FrankenPHP at compile time, i.e. loaded as a shared / out-of-tree module (`extension=session` in an ini). This includes the RPM and Debian packages and other packaged `php-zts` distributions that ship `session` as a shared extension under `conf.d`.\n- **Not affected:** builds where `session` is statically compiled into the PHP that FrankenPHP links against, such as the official static binaries and Docker images. There, the reset code below is compiled in and clears the id every request.\n\nThe C session-reset code is unchanged across 1.11.x-1.12.x, so this is not a code regression between releases. A \"1.12.2 works / 1.12.3 leaks\" observation on the same host reflects two differently-built packages, not a source change. The persistent-zval helpers (#2366) are compiled only under `FRANKENPHP_TEST` and are unrelated.\n\n## Root cause\nFrankenPHP resets per-request session state in `frankenphp_reset_session_state()`, which releases `PS(id)` so the next `session_start()` re-reads the request cookie. That whole function is guarded by `#ifdef HAVE_PHP_SESSION`, a macro defined only when the session extension headers are present at FrankenPHP compile time (session statically enabled in the PHP build). When `session` is a shared module, `HAVE_PHP_SESSION` is undefined, the reset is compiled out, and `PS(id)` survives the request boundary.\n\nPHP's `session_start()` reads the request cookie only when `PS(id)` is `NULL` (`ext/session/session.c`, `try_find_session_id_in_cookies()`: `if (!PS(use_cookies) || PS(id)) return;`). With a stale `PS(id)`, the cookie is ignored and the worker reuses the previous request's id, exposing it to whichever client is served next.\n\n## Reproduction\nMinimal worker script (`index.php`):\n```php\n<?php\n$handler = static function () {\n    session_start();\n    $sent = $_COOKIE['session'] ?? '(none)';\n    $id   = session_id();\n    header('Content-Type: text/plain');\n    echo ($sent === '(none)' || $sent === $id) ? \"OK   sent=$sent id=$id\\n\"\n                                               : \"LEAK sent=$sent id=$id\\n\";\n    session_write_close();\n};\nwhile (\\frankenphp_handle_request($handler)) {}\n```\nRun under worker mode with `num 2` (≥2 workers), `session.use_strict_mode=1`, on a PHP build where `session` is a shared module. Pre-create two valid sessions `A` and `B`, then fire concurrent requests alternating the two cookies:\n```sh\nseq 600 | xargs -P32 -I{} sh -c '\n  c=$([ $(( {} % 2 )) -eq 0 ] && echo A || echo B);\n  curl -s -H \"Cookie: session=$c\" http://127.0.0.1:8080/' | grep -c LEAK\n```\nOn an affected build a large fraction of responses are `LEAK` (`session_id()` differs from the cookie sent, and `A` and `B` sometimes resolve to the same id). On a statically-linked build the count is always `0`.\n\n## Fix\nWhen `HAVE_PHP_SESSION` is undefined, FrankenPHP now resets the `session` module through the module registry on every worker request (its `RSHUTDOWN` releases `PS(id)`, `RINIT` re-initialises the globals), so the per-request cleanup always runs regardless of how the extension is linked. Statically-linked builds are unchanged and keep using `frankenphp_reset_session_state()`.\n\nVerified on PHP 8.6-dev ZTS, 2 workers, `session.use_strict_mode=1`, 600 alternating-cookie concurrent requests: before the fix 519/600 leaked; after the fix 0/600. Statically-linked builds stayed at 0/600.\n\n## Workarounds\n- Use a FrankenPHP build with `session` statically compiled (official static binaries or Docker images).\n- Or, in the worker loop, after `session_write_close()` call `session_id('')` so the next `session_start()` re-reads the request cookie (with `session.use_strict_mode=1`).","state":0,"publishedAt":"2026-10-15T20:14:29+00:00","modifiedAt":"2026-10-19T21:41:08.9858995+00:00","affected":[{"ecosystem":"Go","name":"github.com/dunglas/frankenphp","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.12.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/php/frankenphp/security/advisories/GHSA-v3ph-cgqh-r8p5","https://nvd.nist.gov/vuln/detail/CVE-2026-82416","https://github.com/php/frankenphp/pull/2523","https://github.com/php/frankenphp/commit/be24d82531675f90862b8cde1e9fc7e9ee855aa5","https://github.com/php/frankenphp","https://github.com/php/frankenphp/releases/tag/caddy/v1.12.5"],"sourceUrl":"https://github.com/advisories/GHSA-v3ph-cgqh-r8p5","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-v3ph-cgqh-r8p5","identifiers":["GHSA-v3ph-cgqh-r8p5","CVE-2026-82416","GO-2026-6797"]},"retained":false,"historicalAffected":[]},{"revision":"f926fe12822b4558920b524f984e779f","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-6797","aliases":["CVE-2026-82416","GHSA-v3ph-cgqh-r8p5"],"title":"FrankenPHP: Cross-request PHP session ID leak in worker mode when the session extension is a shared module in github.com/dunglas/frankenphp","description":"FrankenPHP: Cross-request PHP session ID leak in worker mode when the session extension is a shared module in github.com/dunglas/frankenphp","state":0,"publishedAt":"2026-10-19T21:08:35+00:00","modifiedAt":"2026-10-19T21:31:38.3153719+00:00","affected":[{"ecosystem":"Go","name":"github.com/dunglas/frankenphp","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.12.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/php/frankenphp/security/advisories/GHSA-v3ph-cgqh-r8p5","https://nvd.nist.gov/vuln/detail/CVE-2026-82416","https://github.com/php/frankenphp/commit/be24d82531675f90862b8cde1e9fc7e9ee855aa5","https://github.com/php/frankenphp/pull/2523","https://github.com/php/frankenphp/releases/tag/caddy/v1.12.5"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-6797","license":"OSV · upstream source license applies","key":"osv:GO-2026-6797","identifiers":["GO-2026-6797","CVE-2026-82416","GHSA-v3ph-cgqh-r8p5"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-08T14:04:21.6524616+00:00","complete":true,"records":1769,"lastAttemptAt":"2026-11-08T14:04:21.6524616+00:00","lastSuccessAt":"2026-11-08T14:04:21.8442875+00:00","error":null,"lastVerifiedAt":"2026-11-08T14:04:21.8442884+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-eaa64dac63caa79c8d4905619258c41c51b39e461b996124e1a21b5e85e7e738-4b0775bb0fc73c3ceeed66f8f17640894d61d654f97ee9386046b283ad9f9876","complete":true,"records":421100,"lastAttemptAt":"2026-11-08T14:04:21.1432513+00:00","lastSuccessAt":"2026-11-08T14:04:21.1228768+00:00","error":null,"lastVerifiedAt":"2026-11-08T14:04:21.1432513+00:00","snapshotPublishedAt":"2026-11-08T13:27:32+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-383c643166b94ac4b6a615647191978e","complete":true,"records":13654,"lastAttemptAt":"2026-11-08T14:04:47.6384375+00:00","lastSuccessAt":"2026-11-08T13:04:50.073+00:00","error":null,"lastVerifiedAt":"2026-11-08T13:04:50.073+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13706,"expectedIdentifiers":13706,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-08T14:04:21.6524616+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-08T14:04:21.6524616+00:00","lastSuccessAt":"2026-11-08T14:04:21.8452187+00:00","error":null,"lastVerifiedAt":"2026-11-08T14:04:21.8452194+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-ceefbd28b79c4b75ac56c9c678246411","complete":false,"records":13666,"lastAttemptAt":"2026-11-08T14:04:46.9956646+00:00","lastSuccessAt":"2026-11-08T14:04:46.992+00:00","error":null,"lastVerifiedAt":"2026-11-08T14:04:46.992+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13185,"expectedIdentifiers":13706,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-980593e6977a6d1b4fb1eed5a1ffe88a468736f89f0a06f710924ad59132c023","complete":true,"records":9914,"lastAttemptAt":"2026-11-08T14:04:21.5047325+00:00","lastSuccessAt":"2026-11-08T11:07:07.068788+00:00","error":null,"lastVerifiedAt":"2026-11-08T14:04:21.5047325+00:00","snapshotPublishedAt":"2026-11-08T11:02:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-fde804134ecdda0ddd5ff5c26ee1fff5a6fa659311f7ef2e51c6ad54964db0e2","complete":true,"records":1971,"lastAttemptAt":"2026-11-08T14:04:21.2941446+00:00","lastSuccessAt":"2026-11-06T19:03:17.0399903+00:00","error":null,"lastVerifiedAt":"2026-11-08T14:04:21.2941446+00:00","snapshotPublishedAt":"2026-11-06T18:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-964c14035e6f0f6478b2870fad6a7ef9f6045876d4a12af2c2e514521e54b6af","complete":true,"records":3055,"lastAttemptAt":"2026-11-08T14:04:21.6167179+00:00","lastSuccessAt":"2026-11-08T11:07:12.1927025+00:00","error":null,"lastVerifiedAt":"2026-11-08T14:04:21.6167179+00:00","snapshotPublishedAt":"2026-11-08T11:02:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-f8647d7ba64b1ba0dfdc7130944766d5b36d5b77d18fff0c79e651a4cff3c2b9","complete":true,"records":231293,"lastAttemptAt":"2026-11-08T14:04:21.3943214+00:00","lastSuccessAt":"2026-11-08T11:06:56.2918717+00:00","error":null,"lastVerifiedAt":"2026-11-08T14:04:21.3943214+00:00","snapshotPublishedAt":"2026-11-08T11:02:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}