Skip to main content

FrankenPHP EUVDEUVD-2026-125086

| CVE-2026-128016 HIGH
Use After Free (CWE-416)
2026-11-13 VulnCheck GHSA-f45r-jvx9-jfvx
8.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Send HTTP requests to worker-mode app
  2. Exploit
    Reach code using persisted SplTempFileObject
  3. Execution
    Trigger read of freed internal stream
  4. Impact
    Leak 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

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 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

Vendor (VulnCheck) PRIMARY 8.3 HIGH
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
vuln.today AI 6.5 MEDIUM

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.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 60% exploitable
Prevalence
Low
modern PHP app server, growing adoption but still niche footprint
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 HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

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

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.

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-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

CVE-2026-128026 MEDIUM
6.9 Nov 13

Cross-request environment leakage in FrankenPHP 1.5.0 through 1.12.7 allows secrets placed in the process environment by

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