CVE-2025–9086 | Out of bounds read for cookie path
A bug in curl/libcurl's cookie path comparison logic can cause an out-of-bounds read on the heap when processing certain cookie paths. An attacker could use crafted cookie/path combinations to crash a service or potentially leak memory layout information.
medium.com
Published on medium.com
I amdropping something a little quiet today for the Azure and cloud world but it goes straight into the bloodstream of our platforms.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a miscalculation in the comparison between a request path and a cookie path, causing the code to read beyond the allocated heap buffer.
Impact
On many platforms this is only a denial of service, but it could also serve as a repeatable crash primitive, a potential side-channel on heap layout, or a building block in more complex exploit chains.
What the attacker needed
Crafted cookie with specific path; request that re-evaluates cookie; curl/libcurl used as HTTP client
The fix
The text says the bug is fixed in updated curl/libcurl builds, but does not describe the code change.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
curl is a common tool that many programs use to fetch web pages. A bug in how it handles cookies (small pieces of data websites store in your browser) can make it read past the end of a memory buffer, which can crash the program or leak information. This is dangerous because curl is used inside many cloud services.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.