Skip to main content

FrankenPHP CVE-2026-122233

| EUVDEUVD-2026-117119 MEDIUM
Exposure of Data Element to Wrong Session (CWE-488)
2026-11-04 VulnCheck GHSA-2xgr-grwj-fv6m
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Trigger app request that fetches backend API
  2. Delivery
    Backend returns Set-Cookie/token in response headers
  3. Exploit
    Second request on same worker thread omits its own fetch
  4. Execution
    App calls http_get_last_response_headers()
  5. Impact
    Disclose earlier user's headers

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V14 - Data Protection Exposure of data element to wrong session
Exploitation Conditions

Exploitation requires FrankenPHP running in worker mode (classic/non-worker mode is explicitly NOT affected) on PHP 8.4+ where http_get_last_response_headers() exists, AND application code that calls http_get_last_response_headers() in a request without first making its own HTTP stream request in that same request (for example after a fetch that failed before connecting). The leaked data is whatever headers an earlier request on the same worker thread fetched (e.g. Set-Cookie or token headers from a backend API), so a prior request on that thread must have performed such a fetch. Limiting factors: only worker mode is vulnerable, the disclosure depends on request ordering and thread reuse on a shared worker thread (reflected as AT:P), and the application must actually use the affected function in the described pattern - these substantially narrow realistic exploitation despite the network-reachable, unauthenticated vector. Workaround per vendor: call http_clear_last_response_headers() at the start of each worker request; the complete fix is upgrading to 1.13.4.

Impact

The vendor CVSS 4.0 score of 6.3 (medium) is driven by AV:N/PR:N/UI:N (network-reachable, unauthenticated, no user interaction) but tempered by AT:P (a specific attack requirement must be met) and a limited impact profile (VC:L, VI:N, VA:N - confidentiality-only, partial). No EPSS score is provided in the input, and the CVE is NOT in CISA KEV, so there is no evidence of active exploitation; exploitation status is best described as a conceptual proof of concept documented in the GHSA advisory rather than verified working exploit code. The vuln.today decision label is 'this_month', consistent with a real-but-not-emergency fix priority. The signals are internally consistent: a genuine cross-request information-disclosure flaw, but one whose real-world exploitability is gated by two non-default conditions (worker mode must be in use, and application code must call http_get_last_response_headers() without first making its own HTTP stream request in the same request). This is therefore a legitimate confidentiality issue to patch on a normal cycle, not a high-urgency network RCE; the PR:N network framing overstates practical risk because the AT:P attack requirement - dependence on request ordering on a shared worker thread and a specific application code pattern - is the real limiting factor.

Exploit ScenarioDerived

A FrankenPHP worker-mode application makes a backend API call (e.g. file_get_contents()) on one user's request, and the upstream returns sensitive headers such as Set-Cookie or a token. A later request on the same worker thread - possibly from a different user - calls http_get_last_response_headers() without making its own HTTP stream request first (for example after a fetch that failed before connecting) and receives the earlier user's headers. A step-by-step proof of concept is documented in the GHSA advisory, though it is not verified as packaged working exploit code.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 04, 2026

Information disclosure in FrankenPHP worker mode (up to and including 1.13.3, on PHP 8.4+) allows a later request on the same worker thread to read upstream HTTP response headers - such as Set-Cookie or backend API token headers - that an earlier request fetched, because the last-response-headers state is only cleared at RSHUTDOWN, which worker requests skip. The issue is network-reachable and unauthenticated (CVSS:4.0 PR:N), but exploitation requires worker mode (classic mode is explicitly not affected), PHP 8.4+ where http_get_last_response_headers() exists, a prior request on that thread that performed an outbound HTTP stream fetch, and application code that calls http_get_last_response_headers() without first making its own HTTP stream request in the same request, so impact is confidentiality-only and partial (vendor 6.3 medium; independent assessment CVSS:3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N). The vendor addressed the leak in 1.13.4, and the advisory includes public two-request proof-of-concept reproduction steps; those steps are a public PoC reference and are not verified as working standalone exploit code, and there is no CISA KEV entry, with the vulnerability prioritized as 'this_month'.

RemediationAI

Upgrade to FrankenPHP 1.13.4, the vendor-released patch version that clears the last HTTP response headers between worker requests via commit 3fade63bb1c1d246926ed8a00520015f94cdc819 (see https://github.com/php/frankenphp/security/advisories/GHSA-pmvg-8483-mw84 and https://github.com/php/frankenphp/releases/tag/v1.13.4); organizations that cannot upgrade immediately can apply the vendor's documented workaround by calling http_clear_last_response_headers() at the start of each worker request - this must be added to application or worker bootstrap code, so it provides no protection for code paths that do not execute it, whereas upgrading fixes the leak at the server level. The same commit also resets strtok() state and output_add_rewrite_var() variables between worker requests as hardening; the vendor notes those were never documented as request-scoped and are not part of the vulnerability, so applications relying on strtok() continuation or rewrite variables across worker requests should re-check that behavior after upgrading. Because the fix is confined to worker-mode state handling, the same code change is the complete remedy - no separate configuration toggle exists to disable the vulnerable function short of not using http_get_last_response_headers() in worker mode.

Affected VersionsENISA

frankenphp 0 <1.13.4

Affected Packages

euvd frankenphp fix: 1.13.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FrankenPHP embeds the PHP interpreter in a persistent Go HTTP server and, in worker mode, keeps a PHP thread alive across many requests, manually resetting per-request state instead of relying on PHP's normal request lifecycle. PHP's standard extension stores the headers of the most recent HTTP stream wrapper response in the request-global BG(last_http_headers) and releases them in its RSHUTDOWN handler; because FrankenPHP worker requests never run RSHUTDOWN, that state survived from one request to the next, so http_get_last_response_headers() (PHP 8.4+) could return headers captured by an earlier request on the same thread. This is CWE-488 (Exposure of Data Element to Wrong Session), also described as CWE-200 information exposure: the data element is not the PHP session itself but per-request response metadata that carries credentials such as Set-Cookie values. The fix in commit 3fade63bb1c1d246926ed8a00520015f94cdc819 adds destruction of BG(last_http_headers) to FrankenPHP's between-request reset path (guarded by PHP_VERSION_ID >= 80400) and, as hardening rather than part of the vulnerability, also frees BG(strtok_string) and reinitializes the URL rewriter state (output_add_rewrite_var()/session.use_trans_sid) that PHP normally releases at script end. Prior related work (GHSA-4gfw-9v29-gp9h) had already cleared error_get_last() and libxml errors between worker requests; this leak was the analogous gap for last HTTP response headers, whose trigger is a request that calls the function without performing its own successful outbound fetch - the underlying trigger is fixed rather than dependent on timing within a single request.

Know when Frankenphp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 3.7 LOW

Network-reachable and unauthenticated (AV:N/PR:N), but success depends on worker-thread request ordering and a specific app code pattern (AC:H); only partial confidentiality of leaked headers, no integrity or availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

FrankenPHP before 1.13.4 contains an information disclosure vulnerability in worker mode that fails to clear last HTTP stream response headers between requests, because the reset only happens in RSHUTDOWN, which worker requests skip. Later requests calling http_get_last_response_headers() can read headers fetched by earlier requests on the same worker thread, exposing other users' Set-Cookie or token headers from backend APIs.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
modern niche PHP runtime, limited production footprint versus php-fpm
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-24895 CRITICAL POC
9.8 Feb 12

CGI path splitting vulnerability in FrankenPHP before 1.11.2 — Unicode characters bypass path validation during CGI proc

CVE-2026-24894 HIGH POC
7.5 Feb 12

FrankenPHP versions prior to 1.11.2 fail to properly isolate session data between worker requests, enabling cross-user s

CVE-2026-128027 CRITICAL
9.3 Nov 13

FrankenPHP Docker images before 1.1.11 were built only when an upstream base-image tag was created, so when Alpine, PHP,

CVE-2026-128014 CRITICAL
9.2 Nov 13

FrankenPHP standalone static binaries 1.8.0 through 1.13.1 can be crashed by a single unauthenticated request when appli

CVE-2026-128023 CRITICAL
9.1 Nov 13

An authentication bypass in FrankenPHP before 1.13.0 lets unauthenticated remote attackers spoof any trusted dash-form r

CVE-2026-128015 HIGH
8.3 Nov 13

A use-after-free in FrankenPHP releases before 1.13.4 leaves a dangling thread-local pointer to a freed environment sand

CVE-2026-128016 HIGH
8.3 Nov 13

Use-after-free in FrankenPHP worker mode (versions up to and including 1.13.3) lets remote clients trigger reads of free

CVE-2026-128024 HIGH
8.2 Nov 13

FrankenPHP releases before 1.13.0 abort the entire server process - every vhost, worker and in-flight request - when a c

CVE-2026-128020 HIGH
8.2 Nov 13

Uncontrolled recursion in FrankenPHP's PHP-to-Go array converter crashes the entire server process, giving a process-wid

CVE-2026-82416 HIGH
7.7 Oct 13

Unauthenticated remote attackers can obtain another client's PHP session identifier from FrankenPHP worker mode before 1

CVE-2026-128022 MEDIUM
6.9 Nov 13

Denial of service in FrankenPHP releases up to and including 1.13.1 allows unauthenticated remote clients to tie up the

CVE-2026-128025 MEDIUM
6.9 Nov 13

Unauthenticated remote attackers can bypass extension-based execution protections in FrankenPHP before 1.13.0 and cause

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy