Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTTP requests to worker-mode app
-
ExploitReach code using persisted SplTempFileObject
-
ExecutionTrigger read of freed internal stream
-
ImpactLeak freed memory or crash worker process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires FrankenPHP running in worker mode AND the application code must keep an SplTempFileObject, or an SplFileObject opened on php://temp, alive across a worker request boundary - either intentionally (a service constructed at worker boot or a static cache) or accidentally (the object sits in a reference cycle not yet reclaimed by the garbage collector). The attacker then only needs to send requests that reach code using that persisted object. Key limiting factors sharply narrow real-world exposure: classic (non-worker) mode is NOT affected; fopen('php://temp') and php://memory streams (as used by PSR-7 libraries) are NOT affected; and applications that do not persist SPL temp file objects across requests are not reachable. This non-default coding pattern is why the CVSS carries AC:H and AT:P despite unauthenticated network reachability. |
| Impact | Severity signals are moderate-to-high but gated by application behavior. The CVSS 4.0 vector (8.3, High) shows remote, unauthenticated reachability (AV:N/PR:N/UI:N) but explicitly flags elevated attack complexity and an attack requirement (AC:H/AT:P): the flaw only arises when the application holds an SplTempFileObject or SplFileObject('php://temp') across a worker request boundary. Impact is dominated by availability (VA:H - worker/process crash) with only low confidentiality exposure (VC:L - reads of freed heap memory returning garbage); there is no integrity impact (VI:N) and no scope change (SC/SI/SA:N), so this is fundamentally a denial-of-service and minor info-leak issue, not code execution. No EPSS score was supplied, so statistical exploitation likelihood cannot be assessed. There is no KEV listing, so this is 'no confirmed active exploitation'; however a vendor proof-of-concept exists in the GHSA advisory. VulnCheck reported it and the vuln.today Decision label is 'this_week', indicating a real but non-emergency priority - patch on a normal weekly cadence rather than treating it as an incident. Net: a genuine issue for FrankenPHP worker-mode deployments that use persistent SPL temp objects, but the AC:H/AT:P conditions and DoS-centric impact place it below a drop-everything emergency. |
| Exploit ScenarioDerived | A FrankenPHP site runs in worker mode and keeps an SplTempFileObject (or SplFileObject on php://temp) alive across requests - for example a service built at worker boot, a static cache, or an object trapped in an uncollected reference cycle. A remote, unauthenticated client simply sends normal requests that reach the code path using that object; the next use reads the already-freed internal stream, leaking garbage/freed-memory data or crashing the whole worker process. A working proof-of-concept is published in the vendor's GHSA advisory, though it is a demonstration rather than a verified weaponized exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Use-after-free in FrankenPHP worker mode (versions up to and including 1.13.3) lets remote clients trigger reads of freed heap memory by sending requests that reach application code holding an SplTempFileObject, or an SplFileObject opened on php://temp, across a worker request boundary - yielding garbage data disclosure or a hard crash of the whole PHP process. The flaw is not reachable in classic (non-worker) mode, does not affect plain fopen('php://temp') or php://memory streams used by PSR-7 libraries, and requires the application to deliberately persist or accidentally leak (via an uncollected reference cycle) such an SPL file object, which is why the assessed vector carries AC:H/AT:P despite unauthenticated network reachability. No evidence of active exploitation was supplied (not in CISA KEV), though the vendor advisory publishes a minimal proof-of-concept reproduction; it is not verified as working exploit code. Fixed in 1.13.4.
RemediationAI
Upgrade to FrankenPHP 1.13.4, the vendor-released fix (commit 837b76880b33a1a78ae4f27dea85bdcddb6cf70c); the change stops freeing every temporary stream at worker request startup and releases only the request body stream, while preserving application-held php://input handles across requests. If immediate upgrade is not possible, the vendor documents two workarounds: stop keeping SplTempFileObject or SplFileObject('php://temp') instances across worker requests (recreate them per request, at the cost of per-request object initialization), and/or call gc_collect_cycles() after each request as shown in the worker-mode documentation - note that this only reclaims objects stranded in reference cycles, does not cover objects retained on purpose, and adds garbage-collection overhead to every request. Do not rely on the absence of the issue in applications that never persist SPL temp file objects, since that is precisely the condition that makes this flaw unreachable. Advisories: https://github.com/php/frankenphp/security/advisories/GHSA-cm3q-jw2q-9rh5 and https://github.com/php/frankenphp/commit/837b76880b33a1a78ae4f27dea85bdcddb6cf70c; prioritization label from available intelligence is 'this_week'.
Affected VersionsENISA
Affected Packages
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 inside a Caddy-based application server and, in worker mode, keeps the PHP process alive across requests. To avoid leaking the request body stream (PHP does not release it at request end), the pre-1.13.4 shutdown path, frankenphp_release_temporary_streams(), walked EG(regular_list) and deleted every stream whose ops were php_stream_temp_ops, whose __exposed flag was 0, and whose resource refcount was 1. SPL file objects are the trap: SplTempFileObject and SplFileObject('php://temp') hold a raw pointer to their underlying temp stream without exposing that stream to userland and without incrementing its reference count, so they matched exactly that filter. When such an object survived the request boundary - intentionally cached, or retained in a reference cycle not yet reclaimed by the garbage collector - the next request freed its stream out from under it, and any later read or the destructor dereferenced freed memory (CWE-416). Under the default Zend allocator on a release build of PHP 8.5 this returns garbage heap contents; with USE_ZEND_ALLOC=0 it crashes the process. The 1.13.4 commit (837b7688) removes the blanket temp-stream sweep and instead releases only SG(request_info).request_body, mirroring PHP's internal php_stream_input_t layout to detect whether an application-held php://input stream still points at the body by raw address, and skipping the delete in that case.
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
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Remote unauthenticated (AV:N/PR:N/UI:N) but AC:H because it needs an app-persisted SPL temp object; impact is process crash (A:H) plus low freed-memory leak (C:L), no integrity.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
FrankenPHP before 1.13.4 contains a use-after-free vulnerability in worker mode that frees internal streams of SplTempFileObject or SplFileObject on php://temp instances surviving across requests. Remote clients can send requests reaching code that uses such persisted objects, causing reads of freed memory that leak garbage data or crash the process.
Technical POC Analysis
CWE-416 (use-after-free) in FrankenPHP's own C SAPI layer, frankenphp.c, in the function frankenphpreleasetemporarystreams(), which was invoked from frankenphpworkerrequeststartup() at the top of eve…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-128016 is a high-severity use-after-free vulnerability in FrankenPHP worker mode (versions up to and including 1.13.3) that can cause data disclosure or process crashes when applications persist SPL file objects across requests. While exploitation requires specific application conditions and no active exploitation has been observed, the unauthenticated network reachability and public PoC reference warrant prompt patching to prevent potential service disruption.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Frankenphp
View allCGI path splitting vulnerability in FrankenPHP before 1.11.2 — Unicode characters bypass path validation during CGI proc
FrankenPHP versions prior to 1.11.2 fail to properly isolate session data between worker requests, enabling cross-user s
FrankenPHP Docker images before 1.1.11 were built only when an upstream base-image tag was created, so when Alpine, PHP,
FrankenPHP standalone static binaries 1.8.0 through 1.13.1 can be crashed by a single unauthenticated request when appli
An authentication bypass in FrankenPHP before 1.13.0 lets unauthenticated remote attackers spoof any trusted dash-form r
A use-after-free in FrankenPHP releases before 1.13.4 leaves a dangling thread-local pointer to a freed environment sand
FrankenPHP releases before 1.13.0 abort the entire server process - every vhost, worker and in-flight request - when a c
Uncontrolled recursion in FrankenPHP's PHP-to-Go array converter crashes the entire server process, giving a process-wid
Unauthenticated remote attackers can obtain another client's PHP session identifier from FrankenPHP worker mode before 1
Denial of service in FrankenPHP releases up to and including 1.13.1 allows unauthenticated remote clients to tie up the
Unauthenticated remote attackers can bypass extension-based execution protections in FrankenPHP before 1.13.0 and cause
Cross-request environment leakage in FrankenPHP 1.5.0 through 1.12.7 allows secrets placed in the process environment by
EUVD-2026-125086
GHSA-f45r-jvx9-jfvx
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB