CVE-2026-82416: FrankenPHP: Cross-request PHP session ID leak in worker mode when the session extension is a shared module
In 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.
References
- github.com/advisories/GHSA-v3ph-cgqh-r8p5
- github.com/php/frankenphp/commit/be24d82531675f90862b8cde1e9fc7e9ee855aa5
- github.com/php/frankenphp/pull/2523
- github.com/php/frankenphp/releases/tag/caddy/v1.12.5
- github.com/php/frankenphp/security/advisories/GHSA-v3ph-cgqh-r8p5
- nvd.nist.gov/vuln/detail/CVE-2026-82416
Code Behaviors & Features
Detect and mitigate CVE-2026-82416 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →