[PATCH] http: return error when receiving too large header set
authorDaniel Stenberg <daniel@haxx.se>
Wed, 2 Aug 2023 21:34:48 +0000 (23:34 +0200)
committerSamuel Henrique <samueloph@debian.org>
Sat, 19 Jul 2025 19:04:59 +0000 (21:04 +0200)
commit7e0b539a8b00aa7cc9addec9a16487a6f03f5a18
tree3c5ac8bb54e9668a3451b6725605e9f19a655906
parent533c412ed7617b8307c8388d9dd160c61137741b
[PATCH] http: return error when receiving too large header set

To avoid abuse. The limit is set to 300 KB for the accumulated size of
all received HTTP headers for a single response. Incomplete research
suggests that Chrome uses a 256-300 KB limit, while Firefox allows up to
1MB.

Closes #11582

Backport to Debian by Carlos Henrique Lima Melara <charlesmelara@riseup.net>

Gbp-Pq: Name CVE-2023-38039.patch
lib/c-hyper.c
lib/http.c
lib/http.h
lib/http_proxy.c
lib/pingpong.c
lib/urldata.h