{"id":70008,"date":"2025-09-12T11:31:31","date_gmt":"2025-09-12T08:01:31","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-9086-out-of-bounds-read-for-cookie-path\/"},"modified":"2025-09-12T11:31:31","modified_gmt":"2025-09-12T08:01:31","slug":"cve-2025-9086-out-of-bounds-read-for-cookie-path","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-9086-out-of-bounds-read-for-cookie-path\/","title":{"rendered":"CVE-2025-9086 &#8211; Out of bounds read for cookie path"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-9086<br \/>\n<br \/>\n<strong>Published : <\/strong> Sept. 12, 2025, 6:15 a.m. | 27\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>1. A cookie is set using the `secure` keyword for `https:\/\/target`<br \/>\n2. curl is redirected to or otherwise made to speak with `http:\/\/target` (same<br \/>\n   hostname, but using clear text HTTP) using the same cookie set<br \/>\n3. The same cookie name is set &#8211; but with just a slash as path (`path=&#8217;\/&#8217;`).<br \/>\n   Since this site is not secure, the cookie *should* just be ignored.<br \/>\n4. A bug in the path comparison logic makes curl read outside a heap buffer<br \/>\n   boundary<\/p>\n<p>The bug either causes a crash or it potentially makes the comparison come to<br \/>\nthe wrong conclusion and lets the clear-text site override the contents of the<br \/>\nsecure cookie, contrary to expectations and depending on the memory contents<br \/>\nimmediately following the single-byte allocation that holds the path.<\/p>\n<p>The presumed and correct behavior would be to plainly ignore the second set of<br \/>\nthe cookie since it was already set as secure on a secure host so overriding<br \/>\nit on an insecure host should not be okay.<br \/>\n<br \/>\n<strong>Severity:<\/strong> 0.0 | NA<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-9086 Published : Sept. 12, 2025, 6:15 a.m. | 27\u00a0minutes ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-70008","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/70008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=70008"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/70008\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=70008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=70008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=70008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}