CVE-2025-9086
cURL vulnerability analysis and mitigation

Overview

CVE-2025-9086 is a vulnerability discovered in curl versions 7.31.0 through 8.15.0, identified as an out-of-bounds read issue for cookie path handling. The vulnerability was reported on August 11, 2025, and publicly disclosed on September 10, 2025. This security flaw affects the libcurl library implementation, specifically impacting how it handles secure cookies when transitioning between HTTPS and HTTP connections (curl docs).

Technical details

The vulnerability occurs in a specific sequence where a cookie is set using the 'secure' keyword for an HTTPS target, followed by a redirect to the same hostname over HTTP, where the same cookie name is set with a path='/'. A bug in the path comparison logic causes curl to read outside a heap buffer boundary. The CVSS v3.1 base score is 7.5 (High) with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. The issue is classified as CWE-125: Out-of-bounds Read (curl docs, NVD).

Impact

The vulnerability can result in either a crash or potentially incorrect comparison results, allowing a clear-text site to override the contents of a secure cookie. This behavior contradicts the expected security model where secure cookies should not be modifiable by non-secure sites. The impact is considered low severity by curl developers due to the limited control attackers have over the heap memory contents and the requirement for either control of the HTTP site or MITM capabilities (curl docs).

Mitigation and workarounds

The vulnerability has been fixed in curl version 8.16.0. Users are recommended to upgrade to this version or later. Alternative mitigations include applying the security patch to local versions or avoiding the use of HTTP for cookies. The fix was implemented through a commit that corrects the path comparison logic (curl docs).

Additional resources


SourceThis report was generated using AI

Related cURL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-9086HIGH7.5
  • cURLcURL
  • libcurl-minimal-debuginfo
NoYesSep 12, 2025
CVE-2025-5399HIGH7.5
  • MySQLMySQL
  • mysql8.4-common
NoYesJun 07, 2025
CVE-2025-4947MEDIUM6.5
  • cURLcURL
  • libcurl
NoYesMay 28, 2025
CVE-2025-10148MEDIUM5.3
  • cURLcURL
  • libcurl-minimal
NoYesSep 12, 2025
CVE-2025-5025MEDIUM4.8
  • cURLcURL
  • snphost
NoYesMay 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management