Set-Cookie denial of service
A malicious server can serve excessive amounts of `Set-Cookie:` headers in a HTTP response to curl and curl stores all of them. A sufficiently large amount of (big) cookies make subsequent HTTP requests to this, or other servers to which the cookies match, create requests that become larger than the threshold that curl uses internally to avoid sending crazy large requests (1048576 bytes) and instead returns an error. This denial state might remain for as long as the same cookies are kept, match and have not expired. Due to cookie matching rules, a server on `foo.example.com` can set cookies that also would match for `bar.example.com`, making it it possible for a "sister server" to effectively cause a denial of service for a sibling site on the same second level domain using this method.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-32205
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:38 UTC · Revision 1
Source evidence
A malicious server can serve excessive amounts of `Set-Cookie:` headers in a HTTP response to curl and curl stores all of them. A sufficiently large amount of (big) cookies make subsequent HTTP requests to this, or other servers to which the cookies match, create requests that become larger than the threshold that curl uses internally to avoid sending crazy large requests (1048576 bytes) and instead returns an error. This denial state might remain for as long as the same cookies are kept, match and have not expired. Due to cookie matching rules, a server on `foo.example.com` can set cookies that also would match for `bar.example.com`, making it it possible for a "sister server" to effectively cause a denial of service for a sibling site on the same second level domain using this method.
osv:CURL-CVE-2022-32205
Complete source record
{
"id": "e80d94b6c6951bdc09313a6b1aaf17b88d049297c93c4c820b3bb1d3a0c9e958",
"url": "https://osv.dev/vulnerability/CURL-CVE-2022-32205",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Set-Cookie denial of service",
"summary": "A malicious server can serve excessive amounts of `Set-Cookie:` headers in a HTTP response to curl and curl stores all of them. A sufficiently large amount of (big) cookies make subsequent HTTP requests to this, or other servers to which the cookies match, create requests that become larger than the threshold that curl uses internally to avoid sending crazy large requests (1048576 bytes) and instead returns an error. This denial state might remain for as long as the same cookies are kept, match and have not expired. Due to cookie matching rules, a server on `foo.example.com` can set cookies that also would match for `bar.example.com`, making it it possible for a \"sister server\" to effectively cause a denial of service for a sibling site on the same second level domain using this method.",
"evidence": "osv:CURL-CVE-2022-32205",
"products": [],
"severity": "low",
"structured": {
"id": "CURL-CVE-2022-32205",
"aliases": [
"CURL-CVE-2022-32205",
"CVE-2022-32205"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "7.71.0"
},
{
"fixed": "7.84.0"
}
]
},
{
"repo": "https://github.com/curl/curl.git",
"type": "GIT",
"events": [
{
"introduced": "ed35d6590e72c23c568af1e3b8ac6e4e2d883888"
},
{
"fixed": "48d7064a49148f03942380967da739dcde1cdc24"
}
]
}
],
"versions": [
"7.83.1",
"7.83.0",
"7.82.0",
"7.81.0",
"7.80.0",
"7.79.1",
"7.79.0",
"7.78.0",
"7.77.0",
"7.76.1",
"7.76.0",
"7.75.0",
"7.74.0",
"7.73.0",
"7.72.0",
"7.71.1",
"7.71.0",
"curl-7_83_1",
"curl-7_83_0",
"curl-7_82_0",
"curl-7_81_0",
"curl-7_80_0",
"curl-7_79_1",
"curl-7_79_0",
"curl-7_78_0",
"curl-7_77_0",
"curl-7_76_1",
"curl-7_76_0",
"curl-7_75_0",
"curl-7_74_0",
"curl-7_73_0",
"tiny-curl-7_72_0",
"curl-7_72_0",
"curl-7_71_1",
"curl-7_71_0"
],
"database_specific": {
"source": "https://curl.se/docs/CURL-CVE-2022-32205.json",
"vanir_signatures": [
{
"id": "CURL-CVE-2022-32205-16284ad6",
"digest": {
"length": 1482,
"function_hash": "44856816709060387698857799086001880414"
},
"source": "https://github.com/curl/curl.git/commit/48d7064a49148f03942380967da739dcde1cdc24",
"target": {
"file": "lib/http.c",
"function": "Curl_http_cookies"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CURL-CVE-2022-32205-3498864a",
"digest": {
"threshold": 0.9,
"line_hashes": [
"285788908128754277806203243725509779188",
"215223981281964683699010843566616901130",
"337918680823130709335075237609958509333",
"31091562957172181788836708827238943007"
]
},
"source": "https://github.com/curl/curl.git/commit/48d7064a49148f03942380967da739dcde1cdc24",
"target": {
"file": "lib/urldata.h"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CURL-CVE-2022-32205-4b2f770c",
"digest": {
"threshold": 0.9,
"line_hashes": [
"42401565821253743533698856110427635553",
"289573902139677390556467337569149814996",
"108766067958629853036051977100944312584",
"72930070722242242716134039460370112838",
"115172872356202962755951875388100295409",
"90128714653745737404734994216528154255",
"194812740377909909145009966131849467170",
"27712211292545613830103936157074513221",
"94908941393509708542915434406659782964",
"290833222361279288344615079258303183804",
"163309842069244067829690908496458101330",
"267195336736504242283452321987766676054",
"243500615670928317332646905766134524314",
"67029305311913950002922531596468130157",
"169999781548479622370195385069732350200",
"81970080671058689511032354689698511816",
"44838991163309211340580440824580546770",
"53774490026418924724469109431687253514",
"143303264542862435961945377226955029891",
"98204869489589396828928259163789724049",
"166657373838101050687841496411781250413",
"260743206760803509016288653921765511264"
]
},
"source": "https://github.com/curl/curl.git/commit/48d7064a49148f03942380967da739dcde1cdc24",
"target": {
"file": "lib/http.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CURL-CVE-2022-32205-654a4dd6",
"digest": {
"length": 1216,
"function_hash": "30254430020239649490734704415517798863"
},
"source": "https://github.com/curl/curl.git/commit/48d7064a49148f03942380967da739dcde1cdc24",
"target": {
"file": "lib/cookie.c",
"function": "Curl_cookie_getlist"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CURL-CVE-2022-32205-a2655a17",
"digest": {
"length": 10110,
"function_hash": "200387196456884772628138535212581116433"
},
"source": "https://github.com/curl/curl.git/commit/48d7064a49148f03942380967da739dcde1cdc24",
"target": {
"file": "lib/cookie.c",
"function": "Curl_cookie_add"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CURL-CVE-2022-32205-beb8d5fa",
"digest": {
"threshold": 0.9,
"line_hashes": [
"319990965525942506699335375935194533643",
"257040997033756347215855998668153623646",
"230817991934740565297086025360547704749",
"123491371807463895598372670483942760335",
"226381500543036867719128539403591970796",
"144459013500567600845170546078205781995",
"148479872776947907128144642510397511669"
]
},
"source": "https://github.com/curl/curl.git/commit/48d7064a49148f03942380967da739dcde1cdc24",
"target": {
"file": "lib/cookie.h"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CURL-CVE-2022-32205-e386b3ad",
"digest": {
"threshold": 0.9,
"line_hashes": [
"292154197139258896099492185113494553520",
"186888826304681870800909907759855374156",
"37317142846800747730249524252618689897",
"207363572555643828734100126338124281102",
"190156279237247962380515597391486567792",
"82839648143238759749415144811059651342",
"235346230204437528239191034237756965334",
"260046648995034047250893719646870128124",
"184049739219249913186505779661534077664",
"43207676442614300691537532583089665768",
"313424783264293840592141801889023429248",
"68282861202683080037429111660685913740",
"8977130176485821300641133672000777941",
"78996891550401605421963815190133678464"
]
},
"source": "https://github.com/curl/curl.git/commit/48d7064a49148f03942380967da739dcde1cdc24",
"target": {
"file": "lib/cookie.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-25T01:05:03Z"
}
}
],
"modified": "2026-10-25T01:05:03.066892476Z",
"provider": "osv",
"references": [],
"provider_metadata": {
"CWE": {
"id": "CWE-770",
"desc": "Allocation of Resources Without Limits or Throttling"
},
"URL": "https://curl.se/docs/CVE-2022-32205.json",
"www": "https://curl.se/docs/CVE-2022-32205.html",
"award": {
"amount": "480",
"currency": "USD"
},
"issue": "https://hackerone.com/reports/1569946",
"affects": "both",
"package": "curl",
"severity": "Low",
"last_affected": "7.83.1"
}
},
"related_cves": [
{
"value": "CVE-2022-32205",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 444324,
"published_at": "2022-06-27T08:00:00+00:00"
}