In addition to 7 critical vulnerabilities leading to remote code execution, the corrective releases of PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 fixed the vulnerability CVE-2026-128064causing the request to be sent without encryption when using streaming functions such as file_get_contents() and fopen() if the URL specifies a protocol scheme with a capital “S” (for example, HTTPS://, httpS:// or FTPS://). The problem is caused by the fact that the scheme was not case-sensitive when checking for correctness, but the presence of a lowercase “s” character at a certain position in the URL was checked to enable TLS. As a result, if the scheme specified a capital letter “S” instead of a lowercase one, the request was sent without encryption, which made it possible, if it was possible to analyze transit traffic, to intercept cookies, passwords, tokens and other confidential data.
The method also worked when processing redirects – for example, the request “https://…” could be redirected to “HTTPS://…” and PHP sent a re-request without encryption, even if the target server rejected unencrypted connections via https://, but accepted connections on port 80. The problem has appeared since the release of PHP 4.3.0 (2002), but before version 5.2.0 (2006), the attack could only be carried out through redirects, since initially attempts to use “HTTPS://” in functions resulted in an error and ignoring case during verification appeared only in version 5.2.0. As a security workaround, it is recommended to force URL schemes to lowercase before using them in any PHP streaming functions.