{"id":"CVE-2025-9086","aliases":["CVE-2025-9086","CURL-CVE-2025-9086"],"related":[],"kind":"vulnerability","state":"published","title":"Out of bounds read for cookie path","summary":"1. A cookie is set using the `secure` keyword for `https://target`\n2. curl is redirected to or otherwise made to speak with `http://target` (same\n   hostname, but using clear text HTTP) using the same cookie set\n3. The same cookie name is set - but with only a slash as path (`path=\"/\"`).\n   Since this site is not secure, the cookie *should* be ignored.\n4. A bug in the path comparison logic makes curl read outside a heap buffer\n   boundary\n\nThe bug either causes a crash or it potentially makes the comparison come to\nthe wrong conclusion and lets the clear-text site override the contents of the\nsecure cookie, contrary to expectations and depending on the memory contents\nimmediately following the single-byte allocation that holds the path.\n\nThe presumed and correct behavior would be to plainly ignore the second set of\nthe cookie since it was already set as secure on a secure host so overriding\nit on an insecure host should not be okay.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"1. A cookie is set using the `secure` keyword for `https://target`\n2. curl is redirected to or otherwise made to speak with `http://target` (same\n   hostname, but using clear text HTTP) using the same cookie set\n3. The same cookie name is set - but with only a slash as path (`path=\"/\"`).\n   Since this site is not secure, the cookie *should* be ignored.\n4. A bug in the path comparison logic makes curl read outside a heap buffer\n   boundary\n\nThe bug either causes a crash or it potentially makes the comparison come to\nthe wrong conclusion and lets the clear-text site override the contents of the\nsecure cookie, contrary to expectations and depending on the memory contents\nimmediately following the single-byte allocation that holds the path.\n\nThe presumed and correct behavior would be to plainly ignore the second set of\nthe cookie since it was already set as secure on a secure host so overriding\nit on an insecure host should not be okay.","source":"cvelist"},{"lang":"es","text":"1. Una cookie se establece usando la palabra clave 'secure' para 'https://target'\n2. curl es redirigido o se le hace comunicarse con 'http://target' (el mismo nombre de host, pero usando HTTP en texto claro) usando el mismo conjunto de cookies\n3. Se establece el mismo nombre de cookie, pero con solo una barra como ruta ('path=“/”',). Dado que este sitio no es seguro, la cookie debería simplemente ser ignorada.\n4. Un error en la lógica de comparación de rutas hace que curl lea fuera de los límites de un búfer de pila\n\nEl error causa un fallo o potencialmente hace que la comparación llegue a una conclusión errónea y permite que el sitio de texto claro sobrescriba el contenido de la cookie segura, contrariamente a lo esperado y dependiendo del contenido de la memoria inmediatamente posterior a la asignación de un solo byte que contiene la ruta.\n\nEl comportamiento presunto y correcto sería ignorar simplemente el segundo establecimiento de la cookie, ya que ya se había establecido como segura en un host seguro, por lo que sobrescribirla en un host inseguro no debería ser aceptable.","source":"nvd"}],"published":"2025-09-10T08:00:00.000Z","modified":"2026-10-25T01:04:34.038Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"curl","scheme":"rating","rating":"LOW"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"semver","introduced":"8.13.0","fixed":"8.14.2","status":"affected"},{"type":"semver","introduced":"8.15.0","fixed":"8.16.0","status":"affected"}],"vendor":"curl","product":"curl","source":"cvelist"},{"ranges":[{"type":"git","introduced":"1aea05a6c2699e80c75936d58569851555acd603","fixed":"c6ae07c6a541e0e96d0040afb62b45dd37711300","status":"affected"}],"vendor":"curl","product":"curl","repo":"https://github.com/curl/curl.git","source":"cvelist"},{"ranges":[{"version":"8.15.0","status":"affected"},{"version":"8.14.1","status":"affected"},{"version":"8.14.0","status":"affected"},{"version":"8.13.0","status":"affected"}],"vendor":"curl","product":"curl","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.13.0","status":"affected","fixed":"8.14.2"},{"type":"semver","introduced":"8.15.0","status":"affected","fixed":"8.16.0"},{"type":"git","introduced":"1aea05a6c2699e80c75936d58569851555acd603","status":"affected","fixed":"c6ae07c6a541e0e96d0040afb62b45dd37711300"}],"repo":"https://github.com/curl/curl.git","source":"curl"},{"ranges":[{"status":"affected","introduced":"8.13.0","fixed":"8.16.0"}],"vendor":"haxx","product":"curl","cpe":"cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://curl.se/docs/CVE-2025-9086.json","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://curl.se/docs/CVE-2025-9086.html","tags":["patch","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://hackerone.com/reports/3294999","tags":["exploit","issue-tracking","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/09/10/1","tags":["mailing-list","patch","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/01/msg00002.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-089022.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-253495.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["Google Big Sleep","Daniel Stenberg"],"assigner":"curl","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-12T17:15:47.921Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-9086","url":"https://www.cve.org/CVERecord?id=CVE-2025-9086","licence":"CVE Terms of Use","modified":"2026-09-15T06:02:35.281Z"},{"source":"curl","name":"curl","id":"CURL-CVE-2025-9086","url":"https://osv.dev/vulnerability/CURL-CVE-2025-9086","licence":"MIT","modified":"2026-10-25T01:04:34.038Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-9086","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9086","licence":"Public domain","modified":"2026-10-19T17:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:04.592Z","epss":{"score":0.01463,"percentile":0.74386,"date":"2026-12-01T12:00:22.000Z"}}