{"id":"ALPINE-CVE-2025-9086","details":"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.","modified":"2026-09-15T08:30:51.080123104Z","published":"2025-09-12T06:15:44.100Z","upstream":["CVE-2025-9086"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2025-9086"}],"affected":[{"package":{"name":"curl","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/curl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.13.0"},{"fixed":"8.14.1-r2"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2025-9086.json"}},{"package":{"name":"curl","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/curl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.13.0"},{"fixed":"8.14.1-r2"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2025-9086.json"}},{"package":{"name":"curl","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/curl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.13.0"},{"fixed":"8.14.1-r2"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2025-9086.json"}},{"package":{"name":"curl","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/curl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.13.0"},{"fixed":"8.14.1-r2"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2025-9086.json"}},{"package":{"name":"curl","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/curl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.13.0"},{"fixed":"8.16.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2025-9086.json"}},{"package":{"name":"curl","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/curl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.13.0"},{"fixed":"8.16.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2025-9086.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}