CVE-2023-27537: HSTS double-free
libcurl allowed HSTS data to be shared between handles without thread safety, so two threads could cause a double-free or use-after-free.
- Triaged in 45 hours
- Fixed in 2 days
- Paid in 2 days
- Disclosed after 3 days
Summary by the program
##CVE-2023-27537: HSTS double-free
libcurl supports sharing HSTS data between separate "handles". This sharing was introduced without considerations for do this sharing across separate threads but there was no indication of this fact in the documentation.
Due to missing mutexes or thread locks, two threads sharing the same HSTS data could end up doing a double-free or use-after-free.
Security Advisory: https://curl.se/docs/CVE-2023-27537.html
The report
Original Report:https://hackerone.com/reports/1897203
Impact
Double-free
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the HSTS sharing feature was implemented without mutexes or thread locks to protect shared data across threads.
Impact
Two threads sharing HSTS data could cause a double-free or use-after-free.
What the attacker needed
Application uses libcurl with shared HSTS data; multiple threads access the same HSTS data
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 report has not been written yet. The Original tab links to the source.
HSTS tells clients to always use HTTPS for a site. libcurl let parts of a program share this HSTS data without protecting it across threads, which could cause a double-free or use-after-free.
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.