BIT-php-2026-128064: Mixed-case HTTPS and FTPS URLs can expose data in plaintext
Mixed-case HTTPS and FTPS URLs can expose data in plaintext.
The HTTP and FTP stream wrappers recognise URL schemes case-insensitively, but enable TLS only when the scheme contains a lowercase "s" at a fixed position. A URL such as HTTPS:// or FTPS:// passed to filegetcontents(), fopen() or other stream functions, or received as an HTTP redirect target, is therefore handled over unencrypted HTTP or FTP. An attacker able to observe the network traffic can read data the application expected TLS to protect, including credentials, request bodies and transferred files.
This issue affects PHP versions before 8.2.36, 8.3. before 8.3.37, 8.4. before 8.4.28 and 8.5. before 8.5.13.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.2.36 - Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.3.37 - Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.4.28 - Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.5.13 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.2.36 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.3.37 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.4.28 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.5.13 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.2.36 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.3.37 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.4.28 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.5.13 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.2.36 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.3.37 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.4.28 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.5.13
Event History
Frequently Asked Questions
Which application flows are exposed?
Applications are exposed when they pass mixed-case HTTPS or FTPS URLs, such as HTTPS:// or FTPS://, to PHP HTTP or FTP stream functions including file_get_contents() and fopen(). Redirect handling is also affected when an HTTP redirect target uses one of these mixed-case schemes.
What does an attacker need to exploit this issue?
An attacker needs to be able to observe the network traffic. They can then read information sent over the unintended unencrypted HTTP or FTP connection, including credentials, request bodies, and transferred files.
Are normally formatted secure URLs affected?
The described TLS failure applies to schemes where the expected lowercase "s" is not at the fixed position checked by the stream wrapper, such as HTTPS:// and FTPS://. The provided information does not indicate that lowercase https:// or ftps:// URLs are affected.
Which PHP releases contain the fix?
The issue affects PHP releases before 8.2.36, 8.3.37 in the 8.3 series, 8.4.28 in the 8.4 series, and 8.5.13 in the 8.5 series. Upgrade to the applicable fixed release or later.