CVE-2025-9086: Out of bounds read for cookie path

Published Sep 10, 2025
·
Updated

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.

Other sources

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.

MITRE

App Store. A permissions issue was addressed with additional restrictions.

Apple

AppleJPEG. The issue was addressed with improved bounds checks.

Apple

AppleMobileFileIntegrity. A downgrade issue affecting Intel-based Mac computers was addressed with additional code-signing restrictions.

Apple

AppleMobileFileIntegrity. A permissions issue was addressed with additional restrictions.

Apple

Credit

Michael Reeves@@IntegralPilot, an anonymous researcher, Jex Amro, Wojciech Regula(SecuRing), Riley Walz, CVE-2024-7264, CVE-2025-9086, Noah Gregory (wts.dev), Andrew Calvano(Meta Product Security), Lucas Pinheiro(Meta Product Security), Andreas Jaegersberger & Ro Achterberg(Nosebeard Labs), Kaitao Xie(Alibaba Group), Xiaolong Bai(Alibaba Group), CVE-2025-5918, Rosyna Keller(Totally Not Malicious Software), Haoling Zhou(SecLab of The Ohio State University), Shixuan Zhao@@NSKernel(SecLab of The Ohio State University), Chao Wang@@evi0s(SecLab of The Ohio State University), Zhiqiang Lin(SecLab of The Ohio State University), Iván Savransky, Mickey Jin@@patch1t, Amy@@asentientbot, Gergely Kalman@@gergely_kalman, Kay Belardinelli (Harvard University), Claudio Bozzato(Cisco Talos), Francesco Benvenuto(Cisco Talos), Yiğit Ocak, Duy Trần@@khanhduytran0, Google Threat Analysis Group, Phil Pizlo(Epic Games), Apple, Google Big Sleep, Hossein Lotfi@@hosselot(Trend Micro Zero Day Initiative), Nan Wang@@eternalsakura13, floeki(IES Red Team of ByteDance), Zhongcheng Li(IES Red Team of ByteDance), an anonymous researcher(Technische Hochschule Ingolstadt), Michael Schmutzer(Technische Hochschule Ingolstadt), Bing Shi(Alibaba Group), Wenchao Li(Alibaba Group), (Indiana University Bloomington), Luyi Xing(Indiana University Bloomington), 이동하 (Lee Dong Ha(BoB 14th), Kirin@@Pwnrin, Sumanth Rao(UC San Diego), Ye Shu(UC San Diego), Stefan Savage(UC San Diego), Aaron Schulman(UC San Diego), Geoffrey M. Voelker(UC San Diego), Enze Liu (Carnegie Mellon University), Andrei Simion, piffz, Daniel Nurkin, Al Sadman Awal, Mohamed Hamdadou & Mahran Alhazmi, Hichem Maloufi, Christian Mina, Gerson Aldaz, qwerty j0y & Ricardo Garcia, Dorian Del Valle, iG0x72(XiguaSec), JJ(XiguaSec), Lehan Dilusha Jayasinghe, Ron Elemans, Kirin@@Pwnrin(Fudan University), LFY@@secsys(Fudan University), Csaba Fitzl@@theevilbit(Iru), Kenneth Chew, Atul R V, @@retsew0x01, Morris Richman@@morrisinlife

Affected Software

24 affected componentsFixes available
curl curl
Microsoft azl3 cmake 3.30.3-9
Microsoft cbl2 curl 8.8.0-6
Microsoft cbl2 mysql 8.0.43-1
Microsoft cbl2 cmake 3.21.4-18
Microsoft cbl2 rust 1.72.0-10
Microsoft azl3 curl 8.11.1-3
Microsoft cbl2 curl 8.8.0-7
Microsoft cbl2 cmake 3.21.4-19
Microsoft azl3 curl 8.11.1-4
Microsoft azl3 cmake 3.30.3-10
Microsoft cbl2 cmake 3.21.4-20
Apple macOS Sonoma<14.8.3
14.8.3
Apple macOS Sequoia<15.7.3
15.7.3
Apple iOS<18.7.3
18.7.3
Apple iPadOS<18.7.3
18.7.3
Apple WatchOS<26.2
26.2
Apple tvOS<26.2
26.2
Apple visionOS<26.2
26.2
Apple iOS<26.2
26.2
Apple iPadOS<26.2
26.2
Apple macOS Tahoe<26.2
26.2
haxx curl>=8.13.0<8.16.0
Debian Debian Linux=11.0

Event History

Sep 12, 2025
CVE Published
via MITRE·05:10 AM
Data Sourced
via MITRE·05:10 AM
DescriptionWeakness
Data Sourced
via Red Hat·06:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 13, 2025
Data Sourced
via Microsoft·01:05 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:05 AM
SeverityAffected Software
Updated
via Microsoft·01:05 AM
Affected Software
Updated
via Microsoft·01:05 AM
DescriptionSeverity
Dec 12, 2025
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
DescriptionWeakness
Updated
via Apple·12:00 AM
Affected Software
Updated
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Feb 28, 57989
Event
via FIRST·12:55 AM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-9086?

CVE-2025-9086 is considered a high-severity vulnerability due to risks associated with cookie security in mixed content environments.

2

How do I fix CVE-2025-9086?

To fix CVE-2025-9086, ensure that you only use secure cookies with the `secure` attribute and avoid transmitting sensitive cookies over HTTP.

3

What is the impact of CVE-2025-9086?

The impact of CVE-2025-9086 includes potential exposure of sensitive data and session hijacking through man-in-the-middle attacks.

4

Which versions of curl are affected by CVE-2025-9086?

CVE-2025-9086 affects various versions of curl where secure cookies can be mishandled during HTTP redirects.

5

How can I mitigate risks associated with CVE-2025-9086?

Mitigation strategies for CVE-2025-9086 include enforcing HTTPS across all communications and ensuring secure cookie handling.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203