PHP Releases Second Windows Security Update in Five Days to Fix Critical Brotli Vulnerability

Written By Admin October 27, 2026
PHP has released another security update for its official Windows packages, just five days after its previous security releases. The update fixes a serious vulnerability in the Brotli compression library that could allow attackers to corrupt memory and potentially execute malicious code. Developers using PHP on Windows should understand which builds are affected, how the vulnerability works, and how to install the corrected packages to protect their applications.

What Happened? PHP Releases Another Windows Security Update

PHP has released a new set of Windows packages to fix a security vulnerability in the Brotli compression library. The announcement came on October 26, 2026, just five days after PHP published security updates addressing two other remote code execution vulnerabilities known as PHP2Shell. The latest issue is identified as CVE-2026-111497. It affects the Brotli compression component included in certain official PHP Windows packages. Brotli is a technology that compresses data to reduce its size, helping websites and applications transfer information more efficiently. The problem is that a weakness in the compression library's decoding process can cause memory corruption. Under certain conditions, an attacker may be able to exploit this weakness to execute malicious code. PHP has addressed the issue by rebuilding its official Windows packages with a corrected version of Brotli. These new packages retain the PHP source code changes from the previous security releases while updating the affected dependency. The repeated security updates highlight an important lesson for developers: securing an application requires keeping its underlying libraries and software dependencies updated, not just maintaining the application's own code.

Understanding CVE-2026-111497 and the Brotli Security Flaw

To understand this vulnerability, it helps to know how Brotli works. Brotli is a data compression algorithm used by websites, applications, and software libraries to reduce the size of information sent over a network. When an application receives compressed information, the Brotli decoder processes that data and converts it back into its original form. If the decoder contains a security weakness, specially crafted input may cause it to handle memory incorrectly. In this case, CVE-2026-111497 is an out-of-bounds write vulnerability in Brotli decompression. In simple terms, the software may write data outside the memory area it is supposed to use. This can corrupt memory and potentially create an opportunity for code execution. The vulnerability is particularly relevant to PHP applications that use the cURL extension to communicate with external servers. If automatic HTTP response decompression is enabled, a PHP application may process a specially crafted compressed response from a server it contacts. An attacker could attempt to exploit the flaw by getting a vulnerable application to process a malicious response. Successful exploitation could compromise the application or the system running it. However, this does not mean every PHP installation is automatically exploitable. The risk depends on the installed package, the application configuration, and whether the vulnerable decompression functionality can be reached.

Which PHP Versions Are Affected and What Are the Fixed Builds?

The security update covers official PHP Windows packages for versions 8.2, 8.3, 8.4, and 8.5. PHP has published rebuilt packages containing Brotli 1.2.1, which addresses the vulnerability. The corrected package builds are: PHP 8.5.12-1 PHP 8.4.27-1 PHP 8.3.36-1 PHP 8.2.35-1 The -1 suffix is important because it identifies the rebuilt Windows package. The underlying PHP runtime version remains unchanged, so running php -v may display the same version number before and after the update. For example, a developer might see PHP 8.5.12 in both cases. However, the updated package named php-8.5.12-1-nts-Win32-vs17-x64.zip contains the corrected dependency. Developers should download the appropriate package from the official PHP website and verify the filename and SHA-256 checksum against the information published on the download page. It is also important to review the software bill of materials, or SBOM, where available. An SBOM lists the software components included in a package and can help developers identify vulnerable dependencies. Recommended action: Windows users running the affected PHP packages should install the corrected build for their PHP branch and confirm that the updated package has been deployed to the appropriate environments. Official resource: https://windows.php.net/download/

How PHP Developers Can Reduce the Risk of Exploitation

Updating PHP to the corrected Windows package is the recommended way to address this vulnerability. Developers should also review how their applications process compressed HTTP responses. The following actions can help reduce risk: 1. Install the corrected PHP package Download the appropriate rebuilt Windows package from the official PHP downloads page. Make sure the filename includes the -1 suffix and verify the published SHA-256 checksum before deploying it. 2. Review cURL configuration PHP's cURL extension does not enable automatic response decompression by default. However, applications can enable it by setting the CURLOPT_ENCODING option. Developers should review their code and check whether automatic decompression is enabled when making HTTP requests. 3. Check HTTP client libraries Applications using HTTP client libraries such as Guzzle should also be reviewed. Certain Guzzle configurations enable automatic response decoding through cURL, potentially making the vulnerable functionality reachable in affected environments. 4. Apply temporary mitigations if updating is delayed If the corrected package cannot be installed immediately, OpenAI's published guidance recommends disabling automatic decompression in affected HTTP clients until the update is applied. In PHP cURL code, this means avoiding the CURLOPT_ENCODING option. In Guzzle, setting the decode_content request option to false disables automatic decoding, including gzip decoding, so applications may need to handle compressed responses differently. Simply removing br from the Accept-Encoding header is not sufficient protection against a server sending Brotli-compressed data. Temporary mitigations should not replace installing the corrected package. 5. Review other software dependencies Brotli is used by multiple software projects. Developers should check other applications and runtimes in their environments, including software that bundles its own copy of the library, and install the appropriate fixes where required.

Why This Security Update Matters for PHP Applications

This incident demonstrates why third-party dependencies are an important part of application security. A vulnerability can exist in a library included with a programming language package, even when the application's own source code has no direct problem. For developers, this means security checks should cover the complete software environment, including runtime packages, libraries, extensions, and HTTP client tools. The rapid release of another PHP Windows security update also shows why organizations should have a reliable patch management process. Teams need to monitor security announcements, identify affected systems, test corrected packages, and deploy updates without unnecessary delays. As of the reporting published on October 26, 2026, the article did not report confirmed exploitation of this specific flaw. However, the potential for memory corruption and code execution makes the update important for affected installations.

Conclusion

PHP's latest Windows security update fixes CVE-2026-111497, a vulnerability in the bundled Brotli compression library. The issue can affect PHP applications that reach the vulnerable decompression functionality through cURL or related HTTP client configurations. Developers should install the corrected PHP Windows builds, verify the package details, and review their application's HTTP response handling. Keeping third-party dependencies updated is an essential step in protecting web applications against security threats.

Trusted & Certified

Trusted & Certified

Printf Technologies

Printf Technologies understood our requirements deeply and delivered a solution that exceeded expectations.