CVE-2023-4785 — Denial of Service Vulnerability in grpcio
Denial of Service Vulnerability in gRPC TCP Server (Posix-compatible platforms)
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.86%). Schedule for your next planned update.
Does your project use an affected grpc version?
Paste your Gemfile.lock to check it for CVE-2023-4785 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
Lack of error handling in the TCP server in Google's gRPC starting version 1.23 on posix-compatible platforms (ex. Linux) allows an attacker to cause a denial of service by initiating a significant number of connections with the server. Note that gRPC C++ Python, and Ruby are affected, but gRPC Java, and Go are NOT affected.
Advisory Timeline
- First published September 13, 2023 (1170 days ago).
- Last revised September 10, 2026 — 1092 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "grpcio>=1.53.2"
gem install grpc -v 1.54.3
gem install grpc -v 1.55.3
gem install grpc -v 1.56.2
pip install "grpcio>=1.55.3"
pip install "grpcio>=1.54.3"
gem install grpc -v 1.53.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (7)
Affects 2 ecosystems: PyPI (1), RubyGems (1).
| Package | Fixed In |
|---|---|
| grpcio PyPI · Affected: 1.53.0, 1.53.1 | 1.53.2 |
| grpc RubyGems · Affected: 1.54.0, 1.54.2 | 1.54.3 |
| grpc RubyGems · Affected: 1.55.0 | 1.55.3 |
| grpc RubyGems · Affected: 1.56.0 | 1.56.2 |
| grpcio PyPI · Affected: 1.55.0 | 1.55.3 |
| grpcio PyPI · Affected: 1.54.0, 1.54.2 | 1.54.3 |
| grpc RubyGems · Affected: 1.53.0, 1.53.1 | 1.53.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-248
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-4785ADVISORY
- https://github.com/grpc/grpc/pull/33656WEB
- https://github.com/grpc/grpc/pull/33667WEB
- https://github.com/grpc/grpc/pull/33669WEB
- https://github.com/grpc/grpc/pull/33670WEB
- https://github.com/grpc/grpc/pull/33672WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/grpc/CVE-2023-4785.ymlWEB
- https://groups.google.com/g/grpc-io/c/LlLkB1CeE4UWEB
- https://rubygems.org/gems/grpc/versions/1.53.2WEB
- https://rubygems.org/gems/grpc/versions/1.54.3WEB
- https://rubygems.org/gems/grpc/versions/1.55.3WEB
- https://rubygems.org/gems/grpc/versions/1.56.2WEB
Frequently Asked Questions
- What is CVE-2023-4785?
- Denial of Service Vulnerability in gRPC TCP Server (Posix-compatible platforms). 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-4785?
- CVE-2023-4785 affects grpcio and grpc. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-4785 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 55.9% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2023-33953HIGH
Excessive Iteration in gRPC
- 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-2026-129222HIGH
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()