CVEfocus › CVE database › CVE-2025-9086

CVE-2025-9086Out of bounds read for cookie path

CVSS 7.5 HighEPSS 1.4% (higher than 73% of CVEs)Published 2025-09-12Updated 2026-09-15Assigner: curl

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.

CWE-125

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

38Fixed
6Fix pending
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04curlNot affected
vulnerable_code_not_present
Ubuntu 25.10curlFixed8.14.1-2ubuntu1.1UBUNTU-CVE-2025-9086
Ubuntu 24.04curlNot affected
vulnerable_code_not_present
Ubuntu 22.04curlNot affected
vulnerable_code_not_present
Debian 14curlFixed8.16.0~rc2-1DEBIAN-CVE-2025-9086
Debian 13curlFixed8.14.1-2+deb13u1DEBIAN-CVE-2025-9086
Red Hat Enterprise Linux 10curlFixed0:8.12.1-2.el10_1.2RHSA-2026:1825
Red Hat Enterprise Linux 10libcurlFixed0:8.12.1-2.el10_1.2RHSA-2026:1825
Red Hat Enterprise Linux 10libcurl-develFixed0:8.12.1-2.el10_1.2RHSA-2026:1825
Red Hat Enterprise Linux 10libcurl-minimalFixed0:8.12.1-2.el10_1.2RHSA-2026:1825
Red Hat Enterprise Linux 9curlFixed0:7.76.1-35.el9_7.3RHSA-2026:1350
Red Hat Enterprise Linux 9curl-minimalFixed0:7.76.1-35.el9_7.3RHSA-2026:1350
Red Hat Enterprise Linux 9libcurlFixed0:7.76.1-35.el9_7.3RHSA-2026:1350
Red Hat Enterprise Linux 9libcurl-develFixed0:7.76.1-35.el9_7.3RHSA-2026:1350
Red Hat Enterprise Linux 9libcurl-minimalFixed0:7.76.1-35.el9_7.3RHSA-2026:1350
Red Hat Enterprise Linux 8curlFixed0:7.61.1-34.el8_10.9RHSA-2025:23383
Red Hat Enterprise Linux 8libcurlFixed0:7.61.1-34.el8_10.9RHSA-2025:23383
Red Hat Enterprise Linux 8libcurl-develFixed0:7.61.1-34.el8_10.9RHSA-2025:23383
Red Hat Enterprise Linux 8libcurl-minimalFixed0:7.61.1-34.el8_10.9RHSA-2025:23383
Red Hat Enterprise Linux 7curlFix pending
Fix deferred
Red Hat Enterprise Linux 7libcurlFix pending
Fix deferred
Red Hat Enterprise Linux 7libcurl-develFix pending
Fix deferred
Red Hat Enterprise Linux 6curlFix pending
Fix deferred
Red Hat Enterprise Linux 6libcurlFix pending
Fix deferred
Red Hat Enterprise Linux 6libcurl-develFix pending
Fix deferred
AlmaLinux 10curlFixed8.12.1-2.el10_1.2ALSA-2026:1825
AlmaLinux 10libcurlFixed8.12.1-2.el10_1.2ALSA-2026:1825
AlmaLinux 10libcurl-develFixed8.12.1-2.el10_1.2ALSA-2026:1825
AlmaLinux 10libcurl-minimalFixed8.12.1-2.el10_1.2ALSA-2026:1825
AlmaLinux 9curlFixed7.76.1-35.el9_7.3ALSA-2026:1350
AlmaLinux 9curl-minimalFixed7.76.1-35.el9_7.3ALSA-2026:1350
AlmaLinux 9libcurlFixed7.76.1-35.el9_7.3ALSA-2026:1350
AlmaLinux 9libcurl-develFixed7.76.1-35.el9_7.3ALSA-2026:1350
AlmaLinux 9libcurl-minimalFixed7.76.1-35.el9_7.3ALSA-2026:1350
AlmaLinux 8curlFixed7.61.1-34.el8_10.9ALSA-2025:23383
AlmaLinux 8libcurlFixed7.61.1-34.el8_10.9ALSA-2025:23383
AlmaLinux 8libcurl-develFixed7.61.1-34.el8_10.9ALSA-2025:23383
AlmaLinux 8libcurl-minimalFixed7.61.1-34.el8_10.9ALSA-2025:23383
Rocky Linux 10curlFixed0:8.12.1-2.el10_1.2RLSA-2026:1825
Rocky Linux 9curlFixed0:7.76.1-35.el9_7.3RLSA-2026:1350
Rocky Linux 8curlFixed0:7.61.1-34.el8_10.9RLSA-2025:23383
Alpine Linux 3.24curlFixed8.16.0-r0ALPINE-CVE-2025-9086
Alpine Linux 3.23curlFixed8.16.0-r0ALPINE-CVE-2025-9086
Alpine Linux 3.22curlFixed8.14.1-r2ALPINE-CVE-2025-9086
Alpine Linux 3.21curlFixed8.14.1-r2ALPINE-CVE-2025-9086
Alpine Linux 3.20curlFixed8.14.1-r2ALPINE-CVE-2025-9086
Alpine Linux 3.19curlFixed8.14.1-r2ALPINE-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.

References

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.