CVE-2023-33953 — Excessive Iteration in grpc — CVE Details
Excessive Iteration in gRPC
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.47%). Schedule for your next planned update.
Does your project use an affected grpc version?
Paste your Gemfile.lock to check it for CVE-2023-33953 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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…
Advisory Timeline
- First published August 9, 2023 (1205 days ago).
- Last revised July 7, 2026 — 1063 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install grpc -v 1.55.2
gem install grpc -v 1.54.3
pip install "grpcio>=1.53.2"
pip install "grpcio>=1.55.2"
pip install "grpcio>=1.56.2"
gem install grpc -v 1.56.2
gem install grpc -v 1.53.2
pip install "grpcio>=1.54.3"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (8)
Affects 2 ecosystems: PyPI (1), RubyGems (1).
| Package | Fixed In |
|---|---|
| grpc RubyGems · Affected: 1.55.0 | 1.55.2 |
| grpc RubyGems · Affected: 1.54.0, 1.54.2 | 1.54.3 |
| grpcio PyPI · Affected: 0.10.0a0, 0.11.0b0, 0.11.0b1, 0.12.0b0 (+181 more) | 1.53.2 |
| grpcio PyPI · Affected: 1.55.0 | 1.55.2 |
| grpcio PyPI · Affected: 1.56.0 | 1.56.2 |
| grpc RubyGems · Affected: 1.56.0 | 1.56.2 |
| grpc RubyGems · Affected: 0.10.0, 0.11.0, 0.12.0, 0.13.0 (+139 more) | 1.53.2 |
| grpcio PyPI · Affected: 1.54.0, 1.54.2 | 1.54.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-770Allocation of Resources Without LimitsMITRE
- CWE-789
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-33953ADVISORY
- https://cloud.google.com/support/bulletins#gcp-2023-022WEB
- https://github.com/advisories/GHSA-496j-2rq6-j6ccADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/grpc/CVE-2023-33953.ymlWEB
- https://security.snyk.io/vuln/SNYK-RUBY-GRPC-5834442WEB
Frequently Asked Questions
- What is CVE-2023-33953?
- Excessive Iteration in gRPC. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2023-33953?
- CVE-2023-33953 affects grpc and grpcio. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-33953 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 32.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2023-1428HIGH
gRPC Reachable Assertion issue
- CVE-2023-32731HIGH
Connection confusion in gRPC
- CVE-2026-128139HIGH
NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service
- CVE-2023-4785HIGH
Denial of Service Vulnerability in gRPC TCP Server (Posix-compatible platforms)
- CVE-2026-129222HIGH
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()