PHP 8 Sandbox Escape Exploit: Use-After-Free Vulnerability Bypasses disable_functions
By
m0x41nos
Reliable enough to start your morning with. Toast it again tomorrow.
Summary
This article describes a PHP 8 sandbox escape proof-of-concept (PoC) that exploits a use-after-free vulnerability to bypass disable_functions restrictions on Unix-like systems. The exploit leverages DateInterval objects to leak heap pointers and obtain read/write primitives, allowing execution of system commands. The PoC has been tested across multiple PHP distributions and server APIs (CLI, PHP-FPM, Apache module) and reproduces deterministically. The article notes that PHP core is memory-unsafe and memory corruption in typical deployments is exploitable.
Key quotes
· 5 pulledPHP 8 sandbox escape PoC demonstrating a disable_functions bypass on Unix-like systems.
This exploit leverages a use-after-free bug to bypass disable_functions and execute system commands.
The exploitation techniques used for leaking heap pointers and obtaining read/write primitives utilize the DateInterval object.
The PoC was tested across multiple standard PHP distributions and common server APIs (CLI, PHP-FPM, Apache module) and reproduces deterministically.
PHP core is memory-unsafe, and memory corruption in typical PHP deployments is exploitable.
You might also wanna read
Critical Remote Code Execution Vulnerability Discovered in Widely Used protobuf.js Library
A critical remote code execution vulnerability has been discovered in protobuf.js, a widely used JavaScript implementation of Google's Proto
Security Vulnerability in iTerm2: 'cat readme.txt' Command Can Enable Arbitrary Code Execution
The article reveals a security vulnerability in iTerm2 where the seemingly harmless command 'cat readme.txt' can be exploited for arbitrary
Windows Defender Vulnerability Allows Malicious File Persistence Through Cloud Tag Detection
The article describes a GitHub repository called 'RedSun' that documents a Windows Defender vulnerability. The vulnerability involves Window
Roundcube Webmail Vulnerability Allows Email Tracking Despite Image Blocking
Roundcube Webmail versions before 1.5.13 and 1.6.13 contain a security vulnerability (CVE-2026-25916) that allows attackers to bypass remote
Critical RCE Vulnerability in React Server Components Affects React 19.x and Next.js 15.x/16.x
A critical security vulnerability (CVE-2025-5518) affects React packages versions 19.0.0-19.2.0 and Next.js 15.x/16.x using App Router, allo
Critical Chromium Browser Vulnerability: DoS Attack via document.title API Exploitation
The article details 'Brash,' a critical vulnerability in Chromium-based browsers that allows denial-of-service attacks by exploiting the doc
