The PHP development team has officially released updated Windows binary packages across supported branches to address an out-of-bounds write vulnerability discovered in the bundled Brotli decompression library. These rebuilds incorporate Brotli 1.2.1 to remediate CVE-2026-111497, preventing potential memory corruption and instability when processing untrusted HTTP responses.
Understanding the Brotli Decompression Vulnerability
Brotli is a widely adopted data compression algorithm developed for web data transfer, offering higher compression ratios than traditional Deflate or Gzip. In PHP environments running on Windows, the vulnerable decoder can be reached primarily through the cURL extension when automatic HTTP response decompression is active. While libcurl does not decompress Brotli payloads by default, popular modern HTTP abstraction clients—including Guzzle, Symfony HttpClient, and custom API integrations—regularly enable transparent response decompression via the CURLOPT_ACCEPT_ENCODING option.
When an application makes an outbound HTTP request to an untrusted or compromised external web server, a malicious server can respond with a specially crafted compressed payload. Processing this payload through an unpatched Brotli decompression routine triggers an out-of-bounds write, potentially leading to application crashes, memory corruption, or unexpected process termination in web worker processes.
Affected Versions and Package Rebuild Identification
Because the vulnerability resides in an upstream static dependency rather than the PHP language engine itself, the PHP core runtime versions remain unchanged. To distinguish these patched packages from original distribution archives, the Windows release engineering team appended a -1 suffix to each package identifier.
| PHP Branch | Original Release | Patched Windows Package | Bundled Brotli Version |
|---|---|---|---|
| PHP 8.5 | 8.5.12 | 8.5.12-1 | 1.2.1 |
| PHP 8.4 | 8.4.27 | 8.4.27-1 | 1.2.1 |
| PHP 8.3 | 8.3.36 | 8.3.36-1 | 1.2.1 |
| PHP 8.2 | 8.2.35 | 8.2.35-1 | 1.2.1 |
Organizations operating PHP workloads under Internet Information Services (IIS), Apache Lounge, Nginx on Windows, or standalone CLI workers should audit their current binary distributions against this table.
Verifying Application Exposure in PHP Code
Development and security teams can assess whether local applications configure cURL to request and decompress Brotli data. In raw PHP cURL scripts, automatic decompression is explicitly configured through the options shown below:
$ch = curl_init('https://api.external-service.com/data');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Setting an empty string or 'br' requests and automatically decompresses Brotli
curl_setopt($ch, CURLOPT_ENCODING, '');
$response = curl_exec($ch);
curl_close($ch); If your application interacts with third-party webhooks, external REST APIs, or user-supplied URLs using automated decompression, updating the PHP runtime binaries should be prioritized as part of continuous cybersecurity and IT compliance practices.
Implementation and Mitigation Guidance for Windows Administrators
Resolving this security vulnerability requires replacing existing PHP binary distributions on Windows hosts with the updated packages available on the official windows.php.net portal. System engineers managing on-premise servers or self-hosted cloud instances can follow this standard deployment sequence:
- Download Rebuilt Archives: Obtain the corresponding Non-Thread Safe (NTS) or Thread Safe (TS) zip package marked with the
-1suffix matching your architecture (x64 or x86). - Stage and Replace Binaries: In FastCGI environments such as IIS, stop the application pool, overwrite the PHP directory contents with the new archive binaries while preserving your custom
php.iniconfiguration, and restart the service. - Temporary Workaround: If binary replacement cannot be performed immediately, review outbound HTTP client configurations and temporarily remove
bror Brotli from theAccept-Encodingheaders requested by outbound HTTP connections.
For organizations maintaining extensive enterprise infrastructure, coordinating automated patch pipelines through structured managed IT services and support or automated cloud solutions and DevOps frameworks ensures dependencies remain up to date without service interruption.
Final Takeaway
Dependency vulnerabilities like CVE-2026-111497 highlight the importance of tracking static build libraries alongside core framework updates. By applying the rebuilt Windows binaries across active environments, development teams eliminate memory safety risks while maintaining full compatibility with modern, compressed web APIs.
Frequently Asked Questions
What is the primary cause of the PHP Windows Brotli vulnerability?
The issue stems from an out-of-bounds write flaw in the upstream Brotli decompression routine, designated as CVE-2026-111497, which is triggered when processing malformed compressed data.
Why do the updated Windows packages feature a -1 suffix?
The -1 suffix indicates a Windows distribution rebuild that updates bundled dependencies without altering the core PHP runtime source code or release version number.
How does an attacker reach this vulnerability in a PHP application?
An attacker hosting a malicious web server can return a specially crafted Brotli-compressed response to an outbound cURL request initiated by a vulnerable PHP script that has response decompression enabled.
Is automatic response decompression enabled by default in PHP cURL?
No, standard libcurl and PHP cURL disable automatic decompression by default, but popular higher-level libraries such as Guzzle enable it unless explicitly reconfigured.
Which PHP versions received the patched Brotli Windows builds?
The updated Windows builds have been released for PHP 8.5.12-1, PHP 8.4.27-1, PHP 8.3.36-1, and PHP 8.2.35-1.
Are Linux and macOS PHP installations impacted by these Windows packages?
Linux and macOS distributions typically link dynamically against system-provided libbrotli or libcurl packages, meaning administrators on those platforms should update their operating system packages rather than using these Windows archives.
Does updating to the -1 package require changes to custom php.ini files?
No, the update replaces binary executables and bundled dynamic link libraries while maintaining full compatibility with existing custom php.ini configuration directives.
What is the temporary mitigation if upgrading the binary is delayed?
Applications can temporarily mitigate risk by disabling Brotli in outbound HTTP headers, specifically avoiding passing empty string or br to the CURLOPT_ENCODING option in cURL clients.
Where can administrators download the official patched Windows packages?
The verified packages can be downloaded directly from the official PHP for Windows downloads repository at windows.php.net.
Does this Brotli update impact server-side response compression to website visitors?
No, the vulnerability affects inbound response decompression through client tools like cURL rather than server-level gzip or Brotli output compression handled by web servers like IIS or Apache.



