[curl] CVE-2023-38039: HTTP header allocation DOS
curl did not limit the size or number of HTTP response headers it would accept, so a malicious server could stream an endless series of headers and exhaust the client's heap memory. This could cause a denial of service by overloading the user's system.
- Disclosed after 14 days
Summary by the program
CVE-2023-38039 HTTP headers eat all memory Project curl Security Advisory, September 13 2023 - Permalink
VULNERABILITY When curl retrieves an HTTP response, it stores the incoming headers so that they can be accessed later via the libcurl headers API.
However, curl did not have a limit on the size or quantity of headers it would accept in a response, allowing a malicious server to stream an endless series of headers to a client and eventually cause curl to run out of heap memory.
Full Security Advisory: https://curl.se/docs/CVE-2023-38039.html
The report
Hello reporting for CVE-2023-38039 which has been fixed in the latest release of curl today. Link to original report : #2072338
Thanks for your help, if there's anything else you need from me I'll happily share. Have a nice day !
Impact
DOS/overloading of user's system through malicious HTTP server interaction with curl's header parsing.
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
Impact
A malicious HTTP server could stream an endless series of headers to a curl client and eventually cause it to run out of heap memory, leading to a denial of service.
What the attacker needed
Victim uses curl to connect to a malicious server
The fix
The reporter states the issue was fixed in the latest release of curl; the text does not describe the fix.
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.
When curl talks to a web server, it saves the response headers so programs can read them later. Because curl had no cap on how many headers or how large they could be, a bad server could keep sending headers until the computer ran out of memory. This is a denial-of-service bug: the goal is to make the program or system stop working, not to steal data.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.