CVE-2025-9086
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v3.1•HIGH•Score: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- v3.1•MEDIUM•Score: 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS Trends
Current EPSS score: 1.40%• Percentile: 71%
Techniques & Countermeasures
- CWE-125•Out-of-bounds Read
The product reads data past the end, or before the beginning, of the intended buffer.
Affected Systems
- alpine•curl
≥ 8.13.0, < 8.14.1-r2 | ≥ 8.13.0, < 8.14.1-r2 | ≥ 8.13.0, < 8.14.1-r2 | ≥ 8.13.0, < 8.14.1-r2 | ≥ 8.13.0, < 8.16.0-r0 | ≥ 8.13.0, < 8.16.0-r0
- chainguard•libcurl4
all
- wolfi•libcurl4
all
- curl•curl
8.15.0 | 8.14.1 | 8.14.0 | 8.13.0 | ≥ 8.13.0, < 8.14.2 | ≥ 8.15.0, < 8.16.0 | ≥ 1aea05a6c2699e80c75936d58569851555acd603, < c6ae07c6a541e0e96d0040afb62b45dd37711300 | 8.15.0 | 8.14.1 | 8.14.0 | 8.13.0
- debian•curl
< 8.14.1-2+deb13u1 | < 8.16.0~rc2-1
- ubuntu•curl
< 8.14.1-2ubuntu1.1
- debian•debian_linux
11.0
- haxx•curl
≥ 8.13.0, < 8.16.0
- redhat•curl
< 0:7.76.1-31.el9_6.2 | < 0:7.76.1-29.el9_4.3 | < 0:7.76.1-14.el9_0.12 | < 0:7.76.1-23.el9_2.8 | < 0:7.61.1-34.el8_10.9 | < 0:7.76.1-35.el9_7.3 | < 0:8.12.1-1.el10_0.4 | < 0:8.12.1-2.el10_1.2
- redhat•curl-debuginfo
< 0:7.76.1-31.el9_6.2 | < 0:7.76.1-31.el9_6.2 | < 0:7.61.1-34.el8_10.9 | < 0:7.76.1-35.el9_7.3 | < 0:7.76.1-35.el9_7.3 | < 0:8.12.1-2.el10_1.2
- redhat•curl-debugsource
< 0:7.76.1-31.el9_6.2 | < 0:7.76.1-31.el9_6.2 | < 0:7.61.1-34.el8_10.9 | < 0:7.76.1-35.el9_7.3 | < 0:7.76.1-35.el9_7.3 | < 0:8.12.1-2.el10_1.2
- redhat•curl-minimal
< 0:7.76.1-31.el9_6.2 | < 0:7.76.1-29.el9_4.3 | < 0:7.76.1-14.el9_0.12 | < 0:7.76.1-23.el9_2.8 | < 0:7.76.1-35.el9_7.3
- redhat•curl-minimal-debuginfo
< 0:7.76.1-31.el9_6.2 | < 0:7.76.1-31.el9_6.2 | < 0:7.61.1-34.el8_10.9 | < 0:7.76.1-35.el9_7.3 | < 0:7.76.1-35.el9_7.3
- redhat•libcurl
< 0:7.76.1-31.el9_6.2 | < 0:7.76.1-29.el9_4.3 | < 0:7.76.1-14.el9_0.12 | < 0:7.76.1-23.el9_2.8 | < 0:7.61.1-34.el8_10.9 | < 0:7.76.1-35.el9_7.3 | < 0:8.12.1-1.el10_0.4 | < 0:8.12.1-2.el10_1.2
- redhat•libcurl-debuginfo
< 0:7.76.1-31.el9_6.2 | < 0:7.76.1-31.el9_6.2 | < 0:7.61.1-34.el8_10.9 | < 0:7.76.1-35.el9_7.3 | < 0:7.76.1-35.el9_7.3 | < 0:8.12.1-2.el10_1.2
- redhat•libcurl-devel
< 0:7.76.1-31.el9_6.2 | < 0:7.61.1-34.el8_10.9 | < 0:7.76.1-35.el9_7.3 | < 0:8.12.1-2.el10_1.2
- redhat•libcurl-minimal
< 0:7.76.1-31.el9_6.2 | < 0:7.76.1-29.el9_4.3 | < 0:7.76.1-14.el9_0.12 | < 0:7.76.1-23.el9_2.8 | < 0:7.61.1-34.el8_10.9 | < 0:7.76.1-35.el9_7.3 | < 0:8.12.1-1.el10_0.4 | < 0:8.12.1-2.el10_1.2
- redhat•libcurl-minimal-debuginfo
< 0:7.76.1-31.el9_6.2 | < 0:7.76.1-31.el9_6.2 | < 0:7.61.1-34.el8_10.9 | < 0:7.76.1-35.el9_7.3 | < 0:7.76.1-35.el9_7.3 | < 0:8.12.1-2.el10_1.2
References (34)
- 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
- https://security-tracker.debian.org/tracker/CVE-2025-9086
- https://access.redhat.com/errata/RHSA-2025:23043
- https://access.redhat.com/security/updates/classification/#moderate
- https://bugzilla.redhat.com/show_bug.cgi?id=2394750
- https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_23043.json
- https://access.redhat.com/security/cve/CVE-2025-9086
- https://www.cve.org/CVERecord?id=CVE-2025-9086
- https://nvd.nist.gov/vuln/detail/CVE-2025-9086
- https://github.com/curl/curl/commit/c6ae07c6a541e0e96d0040afb6
- https://access.redhat.com/errata/RHSA-2025:23125
- https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_23125.json
- https://access.redhat.com/errata/RHSA-2025:23126
- https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_23126.json
- https://access.redhat.com/errata/RHSA-2025:23127
- https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_23127.json
- https://access.redhat.com/errata/RHSA-2025:23383
- https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_23383.json
- https://access.redhat.com/errata/RHSA-2026:1350
- https://issues.redhat.com/browse/RHEL-129493
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_1350.json
- https://access.redhat.com/errata/RHSA-2026:1477
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_1477.json
- https://access.redhat.com/errata/RHSA-2026:1825
- https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_1825.json
- https://security.alpinelinux.org/vuln/CVE-2025-9086
- https://ubuntu.com/security/CVE-2025-9086
- https://ubuntu.com/security/notices/USN-8062-1