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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.5%top 26.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:10curl8.12.1-2.el10_1.2ALSA-2026:1825
AlmaLinux:8curl7.61.1-34.el8_10.9ALSA-2025:23383
AlmaLinux:9curl7.76.1-35.el9_7.3ALSA-2026:1350
AlmaLinux:9curl-minimal7.76.1-35.el9_7.3ALSA-2026:1350
AlmaLinux:10libcurl8.12.1-2.el10_1.2ALSA-2026:1825
AlmaLinux:8libcurl7.61.1-34.el8_10.9ALSA-2025:23383
AlmaLinux:9libcurl7.76.1-35.el9_7.3ALSA-2026:1350
AlmaLinux:10libcurl-devel8.12.1-2.el10_1.2ALSA-2026:1825
AlmaLinux:8libcurl-devel7.61.1-34.el8_10.9ALSA-2025:23383
AlmaLinux:9libcurl-devel7.76.1-35.el9_7.3ALSA-2026:1350
AlmaLinux:10libcurl-minimal8.12.1-2.el10_1.2ALSA-2026:1825
AlmaLinux:8libcurl-minimal7.61.1-34.el8_10.9ALSA-2025:23383
AlmaLinux:9libcurl-minimal7.76.1-35.el9_7.3ALSA-2026:1350
Alpine:v3.20curl8.14.1-r2ALPINE-CVE-2025-9086
Alpine:v3.21curl8.14.1-r2ALPINE-CVE-2025-9086
Alpine:v3.22curl8.14.1-r2ALPINE-CVE-2025-9086
Alpine:v3.23curl8.16.0-r0ALPINE-CVE-2025-9086
Alpine:v3.24curl8.16.0-r0ALPINE-CVE-2025-9086
Debian:13curl8.14.1-2+deb13u1DEBIAN-CVE-2025-9086
Debian:14curl8.16.0~rc2-1DEBIAN-CVE-2025-9086
Rocky Linux:10curl0:8.12.1-2.el10_1.2RLSA-2026:1825
Rocky Linux:8curl0:7.61.1-34.el8_10.9RLSA-2025:23383
Rocky Linux:9curl0:7.76.1-35.el9_7.3RLSA-2026:1350
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.22USN-8062-1
Ubuntu:24.04:LTScurl8.5.0-2ubuntu10.7USN-8062-1
Ubuntu:25.10curl8.14.1-2ubuntu1.1USN-8062-1
Ubuntu:25.10curl8.14.1-2ubuntu1.1UBUNTU-CVE-2025-9086

Affected products (as reported)

VendorProductVersions
curl curl 8.13.0 – before 8.14.28.15.0 – before 8.16.0
curl curl 1aea05a6c2699e80c75936d58569851555acd603 – before c6ae07c6a541e0e96d0040afb62b45dd37711300
curl curl 8.15.08.14.18.14.08.13.0

Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References