Vulnerability · Published Sep 12, 2025 · Assigned by curl
CVE-2025-9086Out of bounds read for cookie path
High 7.5
In plain English
A high-severity out-of-bounds read in curl from curl. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
1. A cookie is set using the `secure` keyword for `https://target` 2. curl is redirected to or otherwise made to speak with `http://target` (same hostname, but using clear text HTTP) using the same cookie set 3. The same cookie name is set - but with only a slash as path (`path="/"`). Since this site is not secure, the cookie *should* be ignored. 4. A bug in the path comparison logic makes curl read outside a heap buffer boundary The bug either causes a crash or it potentially makes the comparison come to the wrong conclusion and lets the clear-text site override the contents of the secure cookie, contrary to expectations and depending on the memory contents immediately following the single-byte allocation that holds the path. The presumed and correct behavior would be to plainly ignore the second set of the cookie since it was already set as secure on a secure host so overriding it on an insecure host should not be okay.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | curl | 8.12.1-2.el10_1.2 | ALSA-2026:1825 |
| AlmaLinux:8 | curl | 7.61.1-34.el8_10.9 | ALSA-2025:23383 |
| AlmaLinux:9 | curl | 7.76.1-35.el9_7.3 | ALSA-2026:1350 |
| AlmaLinux:9 | curl-minimal | 7.76.1-35.el9_7.3 | ALSA-2026:1350 |
| AlmaLinux:10 | libcurl | 8.12.1-2.el10_1.2 | ALSA-2026:1825 |
| AlmaLinux:8 | libcurl | 7.61.1-34.el8_10.9 | ALSA-2025:23383 |
| AlmaLinux:9 | libcurl | 7.76.1-35.el9_7.3 | ALSA-2026:1350 |
| AlmaLinux:10 | libcurl-devel | 8.12.1-2.el10_1.2 | ALSA-2026:1825 |
| AlmaLinux:8 | libcurl-devel | 7.61.1-34.el8_10.9 | ALSA-2025:23383 |
| AlmaLinux:9 | libcurl-devel | 7.76.1-35.el9_7.3 | ALSA-2026:1350 |
| AlmaLinux:10 | libcurl-minimal | 8.12.1-2.el10_1.2 | ALSA-2026:1825 |
| AlmaLinux:8 | libcurl-minimal | 7.61.1-34.el8_10.9 | ALSA-2025:23383 |
| AlmaLinux:9 | libcurl-minimal | 7.76.1-35.el9_7.3 | ALSA-2026:1350 |
| Alpine:v3.20 | curl | 8.14.1-r2 | ALPINE-CVE-2025-9086 |
| Alpine:v3.21 | curl | 8.14.1-r2 | ALPINE-CVE-2025-9086 |
| Alpine:v3.22 | curl | 8.14.1-r2 | ALPINE-CVE-2025-9086 |
| Alpine:v3.23 | curl | 8.16.0-r0 | ALPINE-CVE-2025-9086 |
| Alpine:v3.24 | curl | 8.16.0-r0 | ALPINE-CVE-2025-9086 |
| Debian:13 | curl | 8.14.1-2+deb13u1 | DEBIAN-CVE-2025-9086 |
| Debian:14 | curl | 8.16.0~rc2-1 | DEBIAN-CVE-2025-9086 |
| Rocky Linux:10 | curl | 0:8.12.1-2.el10_1.2 | RLSA-2026:1825 |
| Rocky Linux:8 | curl | 0:7.61.1-34.el8_10.9 | RLSA-2025:23383 |
| Rocky Linux:9 | curl | 0:7.76.1-35.el9_7.3 | RLSA-2026:1350 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.22 | USN-8062-1 |
| Ubuntu:24.04:LTS | curl | 8.5.0-2ubuntu10.7 | USN-8062-1 |
| Ubuntu:25.10 | curl | 8.14.1-2ubuntu1.1 | USN-8062-1 |
| Ubuntu:25.10 | curl | 8.14.1-2ubuntu1.1 | UBUNTU-CVE-2025-9086 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://curl.se/docs/CVE-2025-9086.json
- https://curl.se/docs/CVE-2025-9086.html
- https://hackerone.com/reports/3294999
- http://www.openwall.com/lists/oss-security/2025/09/10/1
- https://lists.debian.org/debian-lts-announce/2026/01/msg00002.html
- https://cert-portal.siemens.com/productcert/html/ssa-089022.html
- https://cert-portal.siemens.com/productcert/html/ssa-253495.html