# CVE-2026-128064: Mixed-case HTTPS and FTPS URLs can expose data in plaintext

> Attackers observing network traffic can read data PHP applications expected to be protected by TLS, including credentials, when mixed-case HTTPS/FTPS URLs reach stream functions.

- **Severity:** High 8.2 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** Yes (`file_get_contents()`, `fopen()`)
- **Fix available:** Yes
- **Published:** 19 Nov 2026
- **Updated:** 19 Nov 2026
- **Also known as:** ALPINE-CVE-2026-128064, AZL-115123, BELL-CVE-2026-128064, BIT-libphp-2026-128064, BIT-php-2026-128064, BIT-php-min-2026-128064, DEBIAN-CVE-2026-128064, GHSA-f6gg-rchx-xw8j, UBUNTU-CVE-2026-128064

## What is CVE-2026-128064?

CVE-2026-128064 is a high-severity information disclosure vulnerability in PHP, published on 19 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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 file_get_contents(), 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.

Weakness: CWE-319 (Cleartext Transmission of Sensitive Information)

## Which versions are affected by CVE-2026-128064?

3 open source packages ship an affected version, including php, libphp and php-min. It affects 1 product.

An affected version is only exploitable if your software calls file_get_contents() or fopen(). Many projects that include it are not exposed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `php` | Bitnami | `pkg:bitnami/php` | From 8.2.0 | 8.2.36, 8.3.37, 8.4.28, 8.5.13 |
| `libphp` | Bitnami | `pkg:bitnami/libphp` | From 8.2.0 | 8.2.36, 8.3.37, 8.4.28, 8.5.13 |
| `php-min` | Bitnami | `pkg:bitnami/php-min` | From 8.2.0 | 8.2.36, 8.3.37, 8.4.28, 8.5.13 |

Products: PHP.

CPE match criteria (CPE 2.3):

- `cpe:2.3:a:php:php:*:*:*:*:*:*:*:*` before 8.2.36
- `cpe:2.3:a:php:php:*:*:*:*:*:*:*:*` from 8.3.0 before 8.3.37
- `cpe:2.3:a:php:php:*:*:*:*:*:*:*:*` from 8.4.0 before 8.4.28
- `cpe:2.3:a:php:php:*:*:*:*:*:*:*:*` from 8.5.0 before 8.5.13

Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Red Hat | 8 | fixed | `apcu-panel`, `apcu-panel`, `libzip` and 143 more | 5.1.18-1.module+el8.10.0+22485+a3539972, 5.1.23-1.module+el8.10.0+20770+a5eca186, 1.6.1-1.module+el8.10.0+22485+a3539972 |
| Red Hat | 9 | fixed | `apcu-panel`, `apcu-panel`, `apcu-panel` and 245 more | 5.1.23-1.module+el9.7.0+24111+199d2cc4, 5.1.23-1.module+el9.8.0+24343+756b4fcd, 5.1.27-2.module+el9.9.0+24551+b05e3fee |
| Red Hat | 10.3 | fixed | `php`, `php-bcmath`, `php-bcmath-debuginfo` and 97 more | 8.3.37-1.el10_3 |
| Red Hat | aus/8.4 | fixed | `apcu-panel`, `libzip`, `libzip-debuginfo` and 72 more | 5.1.18-1.module+el8.3.0+6678+b09f589e, 1.6.1-1.module+el8.3.0+6678+b09f589e, 7.4.6-5.module+el8.4.0+25409+c1873b4e.4 |
| Red Hat | aus/8.6 | fixed | `apcu-panel`, `libzip`, `libzip-debuginfo` and 72 more | 5.1.18-1.module+el8.3.0+6678+b09f589e, 1.6.1-1.module+el8.3.0+6678+b09f589e, 7.4.19-4.module+el8.6.0+25408+6cada03c.4 |
| Red Hat | e4s/8.8 | fixed | `apcu-panel`, `libzip`, `libzip-debuginfo` and 72 more | 5.1.18-1.module+el8.3.0+6678+b09f589e, 1.6.1-1.module+el8.3.0+6678+b09f589e, 7.4.33-1.module+el8.8.0+25407+f18f08e0.3 |
| Red Hat | e4s/9.2 | fixed | `php`, `php-cli`, `php-dbg` and 47 more | 8.0.30-1.el9_2.3 |
| Red Hat | e4s/9.4 | fixed | `apcu-panel`, `php`, `php` and 111 more | 5.1.23-1.module+el9.4.0+20748+b46899d2, 8.0.30-1.el9_4.3, 8.2.36-1.module+el9.4.0+25392+4784b66b |
| Red Hat | els/6 | end of life | `php`, `php-bcmath`, `php-cli` and 24 more |  |
| Red Hat | els/7 | fixed | `php`, `php-cli`, `php-embedded` and 23 more | 5.4.16-48.el7_9.2 |
| Red Hat | eus/9.6 | fixed | `apcu-panel`, `apcu-panel`, `php` and 178 more | 5.1.23-1.module+el9.4.0+20748+b46899d2, 5.1.23-1.module+el9.6.0+22647+1741ae35, 8.0.30-3.el9_6.3 |
| Red Hat | eus/9.8 | fixed | `apcu-panel`, `apcu-panel`, `php` and 178 more | 5.1.23-1.module+el9.7.0+24111+199d2cc4, 5.1.23-1.module+el9.8.0+24343+756b4fcd, 8.0.30-8.el9_8.2 |
| Red Hat | eus/10.0 | fixed | `php`, `php-bcmath`, `php-bcmath-debuginfo` and 47 more | 8.3.37-1.el10_0 |
| Red Hat | eus/10.2 | fixed | `php`, `php-bcmath`, `php-cli` and 97 more | 8.3.37-1.el10_2 |
| Red Hat | eus-long-life/8.4 | fixed | `apcu-panel`, `libzip`, `libzip-debuginfo` and 72 more | 5.1.18-1.module+el8.3.0+6678+b09f589e, 1.6.1-1.module+el8.3.0+6678+b09f589e, 7.4.6-5.module+el8.4.0+25409+c1873b4e.4 |
| Red Hat | eus-long-life/8.6 | fixed | `apcu-panel`, `libzip`, `libzip-debuginfo` and 72 more | 5.1.18-1.module+el8.3.0+6678+b09f589e, 1.6.1-1.module+el8.3.0+6678+b09f589e, 7.4.19-4.module+el8.6.0+25408+6cada03c.4 |
| Red Hat | hummingbird:1 | fixed | `php`, `php-bcmath`, `php-cli` and 25 more | 8.5.13-0.1.hum1 |
| Red Hat | tus/8.8 | fixed | `apcu-panel`, `libzip`, `libzip-debuginfo` and 72 more | 5.1.18-1.module+el8.3.0+6678+b09f589e, 1.6.1-1.module+el8.3.0+6678+b09f589e, 7.4.33-1.module+el8.8.0+25407+f18f08e0.3 |
| Bitnami (rebuild) |  | fixed | `libphp`, `php`, `php-min` | 8.3.37, 8.4.28, 8.5.13 |

## How do I fix CVE-2026-128064?

Upgrade php to a fixed version for your release line: 8.5.13, 8.4.28, 8.3.37 or 8.2.36.

## Is CVE-2026-128064 being exploited?

There is no known exploitation of CVE-2026-128064 in the wild and no public exploit code.

Public exploit code:

- PoC of CVE-2026-128064 (github_poc): https://github.com/wild0ni0n/CVE-2026-128064-PoC
- PHP stream wrappers: HTTPS:// or FTPS:// with uppercase S sends data in plaintext. Fixed in 8.2.36 / 8.3.37 / 8.4.28 / 8.5.13. Differential: plaintext on vuln, TLS on fixed (github_poc): https://github.com/googlesky/CVE-2026-128064

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-128064 and fix it if it is affected.

What it is: CVE-2026-128064 is a high-severity information disclosure vulnerability in PHP, published on 19 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-128064 in the wild and no public exploit code.
Exposure: An affected version is only exploitable if your software calls file_get_contents() or fopen(). Many projects that include it are not exposed.

Affected packages and fixed versions:
- php (Bitnami): affected from 8.2.0; fixed in 8.2.36, 8.3.37, 8.4.28, 8.5.13
- libphp (Bitnami): affected from 8.2.0; fixed in 8.2.36, 8.3.37, 8.4.28, 8.5.13
- php-min (Bitnami): affected from 8.2.0; fixed in 8.2.36, 8.3.37, 8.4.28, 8.5.13

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
   If an affected version is present, also search the code for calls to file_get_contents() or fopen() and report whether any exist.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-128064/ (Markdown: https://insights.sbomify.com/CVE-2026-128064/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-128064
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-128064
- OSV: https://osv.dev/vulnerability/CVE-2026-128064

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-128064/
Summaries are generated and may contain mistakes; the official description above is the record.
