Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.5

CVE-2016-8623: curl shared cookies can leak data

CVE-2016-8623 · published 10 years ago
Summary

If your applications use curl (Debian or official builds) with cookie sharing across multiple threads, one thread can release cookie data while another is still reading it. This can cause private information to be exposed. Update curl to the latest version or avoid sharing cookies between threads, using separate handles or proper locking instead.

What to do
  • Update debian curl to version 7.51.0-1.
  • Update haxx curl to version 7.51.0 or later.
Affected software
Ecosystem VendorProductAffected versions
Debian:12 debian curl < 7.51.0-1
Fix: upgrade to 7.51.0-1
Debian:13 debian curl < 7.51.0-1
Fix: upgrade to 7.51.0-1
Debian:14 debian curl < 7.51.0-1
Fix: upgrade to 7.51.0-1
– haxx curl < 7.51.0
cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*
Original advisory text
Use after free via shared cookies
libcurl explicitly allows users to share cookies between multiple easy handles
that are concurrently employed by different threads.

When cookies to be sent to a server are collected, the matching function
collects all cookies to send and the cookie lock is released immediately
afterwards. That function however only returns a list with *references* back
to the original strings for name, value, path and so on. Therefore, if another
thread quickly takes the lock and frees one of the original cookie structs
together with its strings, a use after free can occur and lead to information
disclosure. Another thread can also replace the contents of the cookies from
separate HTTP responses or API calls.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
7.5 High
Exploitation
3% chance of attack within 30 days
Type
CWE-416Use After Free
Timeline
Published2 Nov 2016
Updated30 Oct 2026
First seen25 Apr 2026
Track software like this
Free during beta