Skip to main content

FrankenPHP EUVDEUVD-2026-125076

| CVE-2026-128026 MEDIUM
Exposure of Data Element to Wrong Session (CWE-488)
2026-11-13 VulnCheck GHSA-3pr5-hpcj-9r5h
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Reach attacker-controlled request path on shared FrankenPHP process
  2. Delivery
    Victim request stores secret via putenv (dual-written to OS environ)
  3. Exploit
    Spawn child via proc_open/exec with default environment
  4. Execution
    Child inherits leaked secret
  5. Impact
    Return subprocess output disclosing credential

Vulnerability Assessment

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

Exploitation requires FrankenPHP's multi-threaded shared-process model (classic PHP-FPM is process-isolated and not affected), running an affected version between 1.5.0 and before 1.13.0. Concretely: application or dependency code in one request must call putenv() with a sensitive, server-side or request-derived value (e.g. a DB password, API key, or token), and a separate attacker-reachable request path must spawn a child process via proc_open/exec/passthru/shell_exec WITHOUT supplying an explicit env array, so the child inherits the process default environment. Limiting factors that reduce realistic risk: if no application code putenv()s secrets, there is nothing to leak; if subprocesses are always launched with an explicit env array, the channel is closed; cross-request exposure depends on concurrent request timing on the shared thread pool (AC:H/AT:P), though a single-thread residual means the OS environ retains a prior request's keys for later requests' children until overwrite or process exit. PR:L reflects that an attacker needs to reach an application path that performs the subprocess spawn.

Impact

This is a genuine but bounded Medium-severity issue (CVSS 4.0 base 6.9), and the signals are mutually consistent rather than conflicting. The vendor vector CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N describes a local channel (AV:L - the actual disclosure happens through a locally spawned child process environment, not directly over the network), elevated attack complexity (AC:H), a present attack requirement (AT:P), and some privilege/application cooperation (PR:L). Confidentiality dominates (VC:H/SC:H) with only low integrity impact and no availability impact, matching an information-disclosure flaw. No EPSS score and no CISA KEV entry are present in the input, and exploitation is not confirmed in the wild; the vuln.today decision label is 'this_month', i.e. a prioritize-but-not-emergency posture. The practical risk is materially gated: it only bites multi-threaded FrankenPHP deployments where application or dependency code calls putenv() with a server-side secret AND an attacker-reachable path spawns a subprocess with the default environment. That combination makes it a real priority to patch for affected FrankenPHP users but not a drop-everything emergency, and the vendor itself rates it Medium because it is a narrow environment channel rather than the broader cross-request state leak of the prior GHSA-v3ph-cgqh-r8p5. Key missing signals: EPSS and KEV status are absent from the input, so widespread-versus-targeted exploitation likelihood cannot be quantified here.

Exploit ScenarioDerived

On a multi-threaded FrankenPHP server, one request (the victim/application path) calls putenv('APP_DB_PASSWORD=...') with a server-side secret, which FrankenPHP also writes into the process-wide OS environment via Go os.Setenv. A concurrent attacker-reachable request then runs proc_open/exec/passthru without passing an explicit env array, and the spawned child inherits and discloses that secret (e.g. 'printenv APP_DB_PASSWORD'), even though PHP's own sandboxed getenv on that thread returns false. The GHSA advisory includes reproduction code demonstrating this leak; it is a public PoC reference, not verified as a packaged working exploit.

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

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

Alert me

AnalysisAIv1 – Nov 13, 2026

Cross-request environment leakage in FrankenPHP 1.5.0 through 1.12.7 allows secrets placed in the process environment by one request to be read by child processes spawned from a different request. FrankenPHP's putenv override updates its thread-local sandbox but also calls Go's os.Setenv/os.Unsetenv, which mutates the process-wide OS environment that is shared by every thread in the multi-threaded server; request teardown resets only the thread-local table. An attacker who can reach a request path that launches subprocesses via proc_open, exec, passthru or shell_exec without an explicit environment array can therefore capture values such as database passwords or API keys set by another request, although the assessed vector (CVSS 3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N, CVSS 4.0 base 6.9) treats this as a bounded Medium-severity issue because it depends on application code calling putenv with sensitive values and on concurrent shared-process timing. No CISA KEV entry or confirmed working exploit code was identified at time of analysis; the upstream advisory does include reproduction steps, and a vendor patch is available in 1.13.0.

RemediationAI

Vendor-released patch: upgrade FrankenPHP to 1.13.0, which is the fixed version for the Go module go/github.com/dunglas/frankenphp (vulnerable range >=1.5.0 <=1.12.7); the release notes and advisory are at https://github.com/php/frankenphp/security/advisories/GHSA-996f-w38m-f574. The upstream preferred fix stops calling os.Setenv/os.Unsetenv from the request-path putenv so mutations stay in the thread-local sandbox, which means that after upgrading, a subprocess spawned within the same request no longer inherits values set via PHP putenv unless the application passes an explicit env array to proc_open or exec - applications relying on implicit inheritance must be adjusted, and that behavior change should be verified in staging. Until an upgrade can be scheduled, the actionable compensating controls are: launch every subprocess with an explicit environment array (closing the inheritance channel entirely, at the cost of enumerating the variables each child genuinely needs), and stop calling putenv with secrets, API keys or request-derived credentials in application and dependency code (removing the exposure at its source, though any remaining putenv of server-side secrets keeps the leak possible). Deploying behind classic PHP-FPM instead of the multi-threaded FrankenPHP model restores process-level isolation but changes the runtime architecture and forfeits FrankenPHP's worker-mode performance characteristics. Note that snapshotting and restoring the OS environ per request is not a safe workaround under real concurrency, since parallel threads would clobber each other's restores. Because the flaw also persists into later requests' children in single-thread cases until the key is overwritten or the process exits, restarting the server clears residual values but is only a temporary measure.

Affected VersionsENISA

frankenphp 1.5.0 <1.13.0

Affected Packages

euvd frankenphp fix: 1.13.0

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 a PHP interpreter inside a Go process and serves many concurrent requests from a shared thread pool rather than from isolated worker processes. To emulate per-request environment isolation it overrides PHP's putenv/getenv: the C function frankenphp_putenv updates a thread-local sandboxed_env hash and then calls the exported Go helper go_putenv, which invokes os.Setenv or os.Unsetenv on the real process environment. The read side (frankenphp_getenv and the SAPI getenv) consults only sandboxed_env, prepared_env and main_thread_env, never the live OS environ, so PHP-level getenv correctly returns false on other threads while the underlying C environment has already been polluted. reset_sandboxed_environment() frees only the TLS structures and never snapshots or restores the process environ. The root cause maps to CWE-488 (Exposure of Data Element to Wrong Session), with the upstream advisory also classifying it as CWE-668 (Exposure of Resource to Wrong Sphere): state intended to be scoped to one request escapes into process-global state shared by all requests. Because the leak surfaces through child processes that inherit the default environment and through C extensions that call libc getenv directly, PHP-level isolation tests pass and mask the channel. The flaw does not exist in classic PHP-FPM, where each request runs in its own process and therefore in its own OS environment.

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.9 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
vuln.today AI 6.4 MEDIUM

Disclosure occurs via a locally spawned subprocess (AV:L), depends on concurrent-request timing and app putenv of secrets (AC:H, PR:L), crosses into the child process (S:C), leaking confidential secrets (C:H) with minor integrity and no availability impact.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

1
Patch available
Nov 13, 2026 - 10:02 EUVD

DescriptionCVE.org

FrankenPHP from 1.5.0 before 1.13.0 contains an incomplete environment sandbox vulnerability in which putenv writes to the process-wide OS environment via os.Setenv, leaking values across concurrent requests. Attackers reaching a request path that spawns child processes with the default environment through proc_open or exec can read secrets such as database passwords set by other requests.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
modern PHP app server with growing adoption, far smaller footprint than 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.1%
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
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