CVE-2025-9086Out of bounds read for cookie path
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | curl | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | curl | Fixed | 8.14.1-2ubuntu1.1 | UBUNTU-CVE-2025-9086 |
| Ubuntu 24.04 | curl | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | curl | Not affected vulnerable_code_not_present | ||
| Debian 14 | curl | Fixed | 8.16.0~rc2-1 | DEBIAN-CVE-2025-9086 |
| Debian 13 | curl | Fixed | 8.14.1-2+deb13u1 | DEBIAN-CVE-2025-9086 |
| Red Hat Enterprise Linux 10 | curl | Fixed | 0:8.12.1-2.el10_1.2 | RHSA-2026:1825 |
| Red Hat Enterprise Linux 10 | libcurl | Fixed | 0:8.12.1-2.el10_1.2 | RHSA-2026:1825 |
| Red Hat Enterprise Linux 10 | libcurl-devel | Fixed | 0:8.12.1-2.el10_1.2 | RHSA-2026:1825 |
| Red Hat Enterprise Linux 10 | libcurl-minimal | Fixed | 0:8.12.1-2.el10_1.2 | RHSA-2026:1825 |
| Red Hat Enterprise Linux 9 | curl | Fixed | 0:7.76.1-35.el9_7.3 | RHSA-2026:1350 |
| Red Hat Enterprise Linux 9 | curl-minimal | Fixed | 0:7.76.1-35.el9_7.3 | RHSA-2026:1350 |
| Red Hat Enterprise Linux 9 | libcurl | Fixed | 0:7.76.1-35.el9_7.3 | RHSA-2026:1350 |
| Red Hat Enterprise Linux 9 | libcurl-devel | Fixed | 0:7.76.1-35.el9_7.3 | RHSA-2026:1350 |
| Red Hat Enterprise Linux 9 | libcurl-minimal | Fixed | 0:7.76.1-35.el9_7.3 | RHSA-2026:1350 |
| Red Hat Enterprise Linux 8 | curl | Fixed | 0:7.61.1-34.el8_10.9 | RHSA-2025:23383 |
| Red Hat Enterprise Linux 8 | libcurl | Fixed | 0:7.61.1-34.el8_10.9 | RHSA-2025:23383 |
| Red Hat Enterprise Linux 8 | libcurl-devel | Fixed | 0:7.61.1-34.el8_10.9 | RHSA-2025:23383 |
| Red Hat Enterprise Linux 8 | libcurl-minimal | Fixed | 0:7.61.1-34.el8_10.9 | RHSA-2025:23383 |
| Red Hat Enterprise Linux 7 | curl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libcurl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libcurl-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | curl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libcurl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libcurl-devel | Fix pending Fix deferred | ||
| AlmaLinux 10 | curl | Fixed | 8.12.1-2.el10_1.2 | ALSA-2026:1825 |
| AlmaLinux 10 | libcurl | Fixed | 8.12.1-2.el10_1.2 | ALSA-2026:1825 |
| AlmaLinux 10 | libcurl-devel | Fixed | 8.12.1-2.el10_1.2 | ALSA-2026:1825 |
| AlmaLinux 10 | libcurl-minimal | Fixed | 8.12.1-2.el10_1.2 | ALSA-2026:1825 |
| AlmaLinux 9 | curl | Fixed | 7.76.1-35.el9_7.3 | ALSA-2026:1350 |
| AlmaLinux 9 | curl-minimal | Fixed | 7.76.1-35.el9_7.3 | ALSA-2026:1350 |
| AlmaLinux 9 | libcurl | Fixed | 7.76.1-35.el9_7.3 | ALSA-2026:1350 |
| AlmaLinux 9 | libcurl-devel | Fixed | 7.76.1-35.el9_7.3 | ALSA-2026:1350 |
| AlmaLinux 9 | libcurl-minimal | Fixed | 7.76.1-35.el9_7.3 | ALSA-2026:1350 |
| AlmaLinux 8 | curl | Fixed | 7.61.1-34.el8_10.9 | ALSA-2025:23383 |
| AlmaLinux 8 | libcurl | Fixed | 7.61.1-34.el8_10.9 | ALSA-2025:23383 |
| AlmaLinux 8 | libcurl-devel | Fixed | 7.61.1-34.el8_10.9 | ALSA-2025:23383 |
| AlmaLinux 8 | libcurl-minimal | Fixed | 7.61.1-34.el8_10.9 | ALSA-2025:23383 |
| Rocky Linux 10 | curl | Fixed | 0:8.12.1-2.el10_1.2 | RLSA-2026:1825 |
| Rocky Linux 9 | curl | Fixed | 0:7.76.1-35.el9_7.3 | RLSA-2026:1350 |
| Rocky Linux 8 | curl | Fixed | 0:7.61.1-34.el8_10.9 | RLSA-2025:23383 |
| Alpine Linux 3.24 | curl | Fixed | 8.16.0-r0 | ALPINE-CVE-2025-9086 |
| Alpine Linux 3.23 | curl | Fixed | 8.16.0-r0 | ALPINE-CVE-2025-9086 |
| Alpine Linux 3.22 | curl | Fixed | 8.14.1-r2 | ALPINE-CVE-2025-9086 |
| Alpine Linux 3.21 | curl | Fixed | 8.14.1-r2 | ALPINE-CVE-2025-9086 |
| Alpine Linux 3.20 | curl | Fixed | 8.14.1-r2 | ALPINE-CVE-2025-9086 |
| Alpine Linux 3.19 | curl | Fixed | 8.14.1-r2 | ALPINE-CVE-2025-9086 |
What the vendor says
As published in the CVE record by curl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- curl: affected: 8.13.0 to before 8.14.2, 8.15.0 to before 8.16.0; fixed in
8.14.2,8.16.0 - curl: affected: 1aea05a6c2699e80c75936d58569851555acd603 to before c6ae07c6a541e0e96d0040afb62b45dd37711300
- curl: affected: 8.15.0, 8.14.1, 8.14.0, 8.13.0
References
- https://curl.se/docs/CVE-2025-9086.json
- https://curl.se/docs/CVE-2025-9086.html
- https://hackerone.com/reports/3294999
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.