CVE-2025-9086
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-09-12

Last updated on: 2025-11-04

Assigner: curl

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 just a slash as path (`path='/'`). Since this site is not secure, the cookie *should* just 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 Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-09-12
Last Modified
2025-11-04
Generated
2026-05-27
AI Q&A
2025-09-12
EPSS Evaluated
2026-05-25
NVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
curl curl 8.16.0
curl curl 7.31.0
curl curl 8.15.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability involves a bug in curl's handling of cookies with the 'secure' attribute. When a cookie is set as secure on an HTTPS site, it should not be overridden by a cookie from the same hostname served over HTTP. However, due to a flaw in the path comparison logic, curl may read outside the allocated memory buffer, causing either a crash or allowing the insecure HTTP site to override the secure cookie. This behavior breaks the expected security model where secure cookies should only be sent over secure connections.


How can this vulnerability impact me? :

This vulnerability can lead to security issues such as the potential overriding of secure cookies by insecure HTTP responses. This could allow an attacker controlling the HTTP site or network to manipulate or hijack session cookies that were intended to be secure, potentially leading to session hijacking, data leakage, or other unauthorized actions. Additionally, the bug may cause curl to crash, leading to denial of service.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart