Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS00OTZqLTJycTYtajZjY84AA1Le
Excessive Iteration in gRPC
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…
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS00OTZqLTJycTYtajZjY84AA1Le
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 1 year ago
Updated: 6 months ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Percentage: 0.00083
EPSS Percentile: 0.37514
Identifiers: GHSA-496j-2rq6-j6cc, CVE-2023-33953
References:
- https://nvd.nist.gov/vuln/detail/CVE-2023-33953
- https://cloud.google.com/support/bulletins#gcp-2023-022
- https://security.snyk.io/vuln/SNYK-RUBY-GRPC-5834442
- https://github.com/advisories/GHSA-496j-2rq6-j6cc
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/grpc/CVE-2023-33953.yml
Affected Packages
rubygems:grpc
Dependent packages: 177Dependent repositories: 2,596
Downloads: 152,409,191 total
Affected Version Ranges: >= 1.56.0, < 1.56.2, >= 1.55.0, < 1.55.2, >= 1.54.0, < 1.54.3, < 1.53.2
Fixed in: 1.56.2, 1.55.2, 1.54.3, 1.53.2
All affected versions: 0.5.0, 0.6.0, 0.6.1, 0.9.2, 0.9.3, 0.9.4, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.14.1, 0.15.0, 1.0.0, 1.0.1, 1.1.2, 1.2.0, 1.2.2, 1.2.5, 1.3.4, 1.4.0, 1.4.1, 1.4.5, 1.6.0, 1.6.2, 1.6.4, 1.6.6, 1.6.7, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.8.0, 1.8.3, 1.8.6, 1.8.7, 1.9.1, 1.10.0, 1.11.0, 1.11.1, 1.12.0, 1.13.0, 1.14.0, 1.14.1, 1.14.2, 1.15.0, 1.16.0, 1.17.0, 1.17.1, 1.18.0, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.23.1, 1.24.0, 1.25.0, 1.26.0, 1.27.0, 1.28.0, 1.30.0, 1.30.1, 1.30.2, 1.31.1, 1.32.0, 1.34.0, 1.35.0, 1.36.0, 1.37.0, 1.37.1, 1.38.0, 1.39.0, 1.40.0, 1.41.0, 1.41.1, 1.42.0, 1.43.1, 1.45.0, 1.46.2, 1.46.3, 1.47.0, 1.48.0, 1.49.1, 1.50.0, 1.51.0, 1.52.0, 1.52.2, 1.53.0, 1.53.1, 1.54.0, 1.54.2, 1.55.0, 1.56.0
All unaffected versions: 1.53.2, 1.54.3, 1.55.3, 1.56.2, 1.57.0, 1.58.0, 1.58.3, 1.59.0, 1.59.2, 1.59.5, 1.60.0, 1.60.2, 1.61.0, 1.61.3, 1.62.0, 1.62.3, 1.63.0, 1.63.2, 1.64.0, 1.64.3, 1.65.0, 1.65.1, 1.65.2, 1.66.0, 1.67.0, 1.68.1, 1.69.0
pypi:grpcio
Dependent packages: 1,373Dependent repositories: 55,951
Downloads: 124,042,700 last month
Affected Version Ranges: >= 1.56.0, < 1.56.2, >= 1.55.0, < 1.55.2, >= 1.54.0, < 1.54.3, < 1.53.2
Fixed in: 1.56.2, 1.55.2, 1.54.3, 1.53.2
All affected versions: 0.3.0, 0.4.0, 0.13.0, 0.13.1, 0.14.0, 0.15.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.3, 1.2.0, 1.2.1, 1.3.0, 1.3.3, 1.3.5, 1.4.0, 1.6.0, 1.6.3, 1.7.0, 1.7.3, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.6, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.11.0, 1.11.1, 1.12.0, 1.12.1, 1.13.0, 1.14.0, 1.14.1, 1.14.2, 1.15.0, 1.16.0, 1.16.1, 1.17.0, 1.17.1, 1.18.0, 1.19.0, 1.20.0, 1.20.1, 1.21.1, 1.22.0, 1.22.1, 1.23.0, 1.23.1, 1.24.0, 1.24.1, 1.24.3, 1.25.0, 1.26.0, 1.27.1, 1.27.2, 1.28.1, 1.29.0, 1.30.0, 1.31.0, 1.32.0, 1.33.1, 1.33.2, 1.34.0, 1.34.1, 1.35.0, 1.36.0, 1.36.1, 1.37.0, 1.37.1, 1.38.0, 1.38.1, 1.39.0, 1.40.0, 1.41.0, 1.41.1, 1.42.0, 1.43.0, 1.44.0, 1.45.0, 1.46.0, 1.46.1, 1.46.3, 1.46.5, 1.47.0, 1.47.2, 1.47.5, 1.48.0, 1.48.1, 1.48.2, 1.49.0, 1.49.1, 1.50.0, 1.51.0, 1.51.1, 1.51.3, 1.52.0, 1.53.0, 1.53.1, 1.54.0, 1.54.2, 1.55.0, 1.56.0
All unaffected versions: 1.53.2, 1.54.3, 1.55.3, 1.56.2, 1.57.0, 1.58.0, 1.58.3, 1.59.0, 1.59.2, 1.59.3, 1.59.5, 1.60.0, 1.60.1, 1.60.2, 1.61.3, 1.62.0, 1.62.1, 1.62.2, 1.62.3, 1.63.0, 1.63.2, 1.64.0, 1.64.1, 1.64.3, 1.65.0, 1.65.1, 1.65.2, 1.65.4, 1.65.5, 1.66.0, 1.66.1, 1.66.2, 1.67.0, 1.67.1, 1.68.0, 1.68.1, 1.69.0, 1.70.0