Read the docs

Use-after-free in FrankenPHP putenv() during request shutdown

Priority LOW 36CWE-416Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
Low · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

FrankenPHP before 1.13.4 contains a use-after-free flaw where a dangling pointer to a freed environment table remains after putenv() is called during request shutdown. An unauthenticated remote attacker can trigger putenv() from shutdown functions, destructors, or session handlers to crash the process on the next getenv() call or leak environment values from a previous request. This weakness is tracked as CWE-416.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

Description from the CNA

FrankenPHP before 1.13.4 contains a use-after-free vulnerability that leaves a dangling pointer to a freed environment table when putenv() is called during request shutdown. Attackers triggering putenv() in shutdown functions, destructors, or session handlers can crash the process on the next getenv() call or leak previous request environment values.

Why it matters now

EPSS 0.00346 28th percentileScored 2026-11-16
Fix Fixed frankenphp (php): 1.13.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
PHPfrankenphpbefore 1.13.41.13.4Patch availableCNA
  • frankenphp VendorPHP Affected before 1.13.4 Fixed in 1.13.4 Patch available CNA

Remediation

Upgrade FrankenPHP to version 1.13.4 or later.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA frankenphp (php) Fixed in 1.13.4

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    php frankenphp 1.13.4

    5 records Highest priority Priority MEDIUM 1 MEDIUM, 4 LOW

    Other records, highest priority first

    • TI-2026-91431 Double free in FrankenPHP worker mode via non-form POST requestsPriority MEDIUM 61
    • TI-2026-91430 Use-after-free in FrankenPHP worker mode reads freed memoryPriority LOW 36
    • TI-2026-91433 FrankenPHP worker mode leaks environment variables between requestsPriority LOW 28

Timeline

  1. 2026-11-13 Threatist record created from CVE-2026-128015
  2. 2026-11-13 Alias added: GHSA-2v43-gp2p-9228

References

  • TI-2024-04260 Argument injection in PHP-CGI on Windows lets attackers pass options KEVCVSS 3.1CRITICAL 9.8
  • TI-2019-08259 Buffer underflow in PHP-FPM allows remote code execution KEVCVSS 3.1CRITICAL 9.8
  • TI-2016-08118 Argument injection in PHPMailer isMail transport allows code execution KEVCVSS 3.1CRITICAL 9.8
  • TI-2012-01607 Argument injection in PHP CGI binary allows remote code execution KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-78794 Stale global state enables remote code execution in PHP KEVCVSS 4.0CRITICAL 9.2
  • TI-2026-78793 Out-of-memory error handling in PHP allows remote code execution KEVCVSS 4.0CRITICAL 9.2
See all 791 →

Sources