---
id: "CVE-2026-128016"
page: "https://infrastack.ai/live/CVE-2026-128016"
kind: "vulnerability"
aliases: ["CVE-2026-128016"]
title: "FrankenPHP: worker mode use-after-free leaks memory or crashes the process"
severity: "high"
cvss: 8.3
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["frankenphp", "php", "runtime", "self-hosted", "worker-mode"]
not_affected_if: ["non-frankenphp-php", "worker-mode-disabled"]
published_at: "2026-11-13T10:18:06+00:00"
first_seen_at: "2026-11-13T10:47:30+00:00"
updated_at: "2026-11-13T10:51:04+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-128016", "first_seen_at": "2026-11-13T10:47:30+00:00"}]
exploit_sources: []
---

# FrankenPHP: worker mode use-after-free leaks memory or crashes the process

Link for people: https://infrastack.ai/live/CVE-2026-128016 (this .md is for agents)

FrankenPHP before 1.13.4 frees internal streams of SplTempFileObject or SplFileObject on php://temp objects that survive across requests in worker mode. Remote requests that reach code using those persisted objects read freed memory, leaking garbage data or crashing the process.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed FrankenPHP version and confirm it is below `1.13.4`
- Look for worker mode enabled in your FrankenPHP or Caddy configuration
- Search application code for persisted `SplFileObject` or `SplTempFileObject` instances using `php://temp`

## Fix

- Upgrade FrankenPHP to `1.13.4` or later

## Timeline

- 2026-11-13T10:47:30+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-128016

## Documents

- [advisory] Vendor advisory: github.com https://github.com/php/frankenphp/security/advisories/GHSA-cm3q-jw2q-9rh5
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/frankenphp-before-1.13.4-use-after-free-of-spltempfileobject-streams-in-worker-mode
- [fix] Patch: github.com https://github.com/php/frankenphp/commit/837b76880b33a1a78ae4f27dea85bdcddb6cf70c

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
