Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach attacker-controlled request path on shared FrankenPHP process
-
DeliveryVictim request stores secret via putenv (dual-written to OS environ)
-
ExploitSpawn child via proc_open/exec with default environment
-
ExecutionChild inherits leaked secret
-
ImpactReturn 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
Use-after-free in FrankenPHP worker mode (versions up to and including 1.13.3) lets remote clients trigger reads of free
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
EUVD-2026-125076
GHSA-3pr5-hpcj-9r5h
NVD
CVE.org
EPSS
Exploit-DB