{"id":"CVE-2023-33953","published":"2023-08-09T12:54:47Z","modified":"2024-09-27T18:40:52Z","title":"Denial-of-Service in gRPC","vendor":"Google","product":"gRPC","tier":"tail","description":{"text":"gRPC contains a vulnerability that allows hpack table accounting errors could lead to unwanted disconnects between clients and servers in exceptional cases/ Three vectors were found that allow the following DOS attacks:\n\n- Unbounded memory buffering in the HPACK parser\n- Unbounded CPU consumption in the HPACK parser\n\nThe unbounded CPU consumption is down to a copy that occurred per-input-block in the parser, and because that could be unbounded due to the memory copy bug we end up with an O(n^2) parsing loop, with n selected by the client.\n\nThe unbounded memory buffering bugs:\n\n- The header size limit check was behind the string reading code, so we needed to first buffer up to a 4 gigabyte string before rejecting it as longer than 8 or 16kb.\n- HPACK varints have an encoding quirk whereby an infinite number of 0’s can be added at the start of an integer. gRPC’s hpack parser needed to read all of them before concluding a parse.\n- gRPC’s metadata overflow check was performed per frame, so that the following sequence of frames could cause infinite buffering: HEADERS: containing a: 1 CONTINUATION: containing a: 2 CONTINUATION: containing a: 3 etc…","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00479,"percentile":0.42274,"provenance":"source"},"cwes":[{"id":"CWE-834","name":"Excessive Iteration"},{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://cloud.google.com/support/bulletins#gcp-2023-022","tags":[]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":8.45},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"google","affectedVersions":[{"vendor":"Google","product":"gRPC","versions":["< 1.56.1"]}],"capec":[{"id":"CAPEC-220","name":"Client-Server Protocol Manipulation"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-27T17:54:21.539206Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"grpcio","vulnerableRanges":["<1.53.2",">=1.54.0, <1.54.3",">=1.55.0, <1.55.2",">=1.56.0, <1.56.2"],"patched":["1.53.2","1.54.3","1.55.2","1.56.2"],"from":["GHSA-496j-2rq6-j6cc","PYSEC-2026-1424"],"provenance":"source"},{"ecosystem":"RubyGems","package":"grpc","vulnerableRanges":["<1.53.2",">=1.54.0, <1.54.3",">=1.55.0, <1.55.2",">=1.56.0, <1.56.2"],"patched":["1.53.2","1.54.3","1.55.2","1.56.2"],"from":["GHSA-496j-2rq6-j6cc"],"provenance":"source"}],"summary":{"text":"The flaw lies in the HPACK header parser of Google's gRPC product, where table accounting errors and unbounded memory buffering and CPU consumption let a client exhaust server resources and cause unwanted disconnects between clients and servers. An attacker who can reach the gRPC service over the network needs no privileges or user interaction to send crafted HPACK header frames, such as oversized strings, endless leading zeros in varints, or repeated CONTINUATION frames, to cause denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:33Z"},"euvd":{"id":"EUVD-2023-2204","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-32731","published":"2023-06-09","fixed":"1.54.2","kev":false,"link":{"from":"CVE-2023-32731","to":"CVE-2023-33953","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:grpcio","fromFixed":"1.53.1","toFixed":"1.53.2","daysApart":61},{"kind":"version-step","provenance":"source","package":"RubyGems:grpc","fromFixed":"1.53.1","toFixed":"1.53.2","daysApart":61}]}},{"cve":"CVE-2023-32732","published":"2023-06-09","fixed":"1.54.2","kev":false},{"cve":"CVE-2023-4785","published":"2023-09-13","fixed":"1.55.3","kev":false,"link":{"from":"CVE-2023-33953","to":"CVE-2023-4785","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:grpcio","fromFixed":"1.55.2","toFixed":"1.55.3","daysApart":35},{"kind":"version-step","provenance":"source","package":"RubyGems:grpc","fromFixed":"1.55.2","toFixed":"1.55.3","daysApart":35}]}},{"cve":"CVE-2023-33953","published":"2023-08-09","fixed":"1.56.2","kev":false}],"package":"PyPI:grpcio"}}