Skip to content

← Public intelligence

PyPI package

grpcio

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

6 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.5PyPIAmendedPublished

    Denial of Service Vulnerability in gRPC TCP Server (Posix-compatible platforms)

    CVE-2023-4785 · GHSA-p25m-jpj4-qcrr

    Affected
    • PyPI grpcio >= 1.55.0, < 1.55.3; >= 1.54.0, < 1.54.3; >= 1.53.0, < 1.53.2
    Fixed in
    1.54.31.55.31.53.2· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 1.55.3, 1.54.3 or 1.53.2 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. High, CVSS 7.5PyPIAmendedPublished

    Excessive Iteration in gRPC

    CVE-2023-33953 · GHSA-496j-2rq6-j6cc

    Affected
    • PyPI grpcio < 1.53.2; >= 1.54.0, < 1.54.3; >= 1.55.0, < 1.55.2; >= 1.56.0, < 1.56.2
    Fixed in
    1.54.31.55.21.53.21.56.2· Vendor fix available
    Issue
    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…

    Recommended action: Upgrade to 1.56.2, 1.55.2, 1.54.3 or 1.53.2 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. High, CVSS 7.5PyPIAmendedPublished

    gRPC Reachable Assertion issue

    CVE-2023-1428 · GHSA-6628-q6j9-w8vg

    Affected
    • PyPI grpcio >= 1.51.0, < 1.53.0
    Fixed in
    1.53.0· Vendor fix available
    Issue
    There exists an vulnerability causing an abort() to be called in gRPC. The following headers cause gRPC's C++ implementation to abort() when called via http2: te: x (x != trailers) :scheme: x (x != http, https) grpclbclientstats: x (x == anything) On top of sending one of those headers, a later header must be sent that gets the total header size past 8KB. We recommend upgrading past git commit 2485fa94bd8a723e5c977d55a3ce10b301b437f8 or v1.53 and above.

    Recommended action: Upgrade to 1.53.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. Medium, CVSS 5.3PyPIAmendedPublished

    gRPC connection termination issue

    CVE-2023-32732 · GHSA-9hxf-ppjv-w6rq

    Affected
    • PyPI grpcio >= 1.53.0, < 1.53.1; >= 1.54.0, < 1.54.2
    Fixed in
    1.53.11.54.2· Vendor fix available
    Issue
    gRPC contains a vulnerability whereby a client can cause a termination of connection between a HTTP2 proxy and a gRPC server: a base64 encoding error for -bin suffixed headers will result in a disconnection by the gRPC server, but is typically allowed by HTTP2 proxies. We recommend upgrading beyond the commit in https://github.com/grpc/grpc/pull/32309.

    Recommended action: Upgrade to 1.54.2 or 1.53.1 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. High, CVSS 7.4PyPIAmendedPublished

    Connection confusion in gRPC

    CVE-2023-32731 · GHSA-cfgp-2977-2fmm

    Affected
    • PyPI grpcio >= 1.53.0, < 1.53.1; >= 1.54.0, < 1.54.2
    Fixed in
    1.53.11.54.2· Vendor fix available
    Issue
    When gRPC HTTP2 stack raised a header size exceeded error, it skipped parsing the rest of the HPACK frame. This caused any HPACK table mutations to also be skipped, resulting in a desynchronization of HPACK tables between sender and receiver. If leveraged, say, between a proxy and a backend, this could lead to requests from the proxy being interpreted as containing headers from different proxy clients - leading to an information leak that can be used for privilege escalation or data exfiltration.

    Recommended action: Upgrade to 1.54.2 or 1.53.1 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  6. UnratedPyPIPublished

    PYSEC-2017-101

    CVE-2017-8359

    Affected
    • PyPI grpcio < 1.3.0
    Fixed in
    1.3.0· Vendor fix available
    Issue
    Google gRPC before 2017-03-29 has an out-of-bounds write caused by a heap-based use-after-free related to the grpc_call_destroy function in core/lib/surface/call.c.

    Recommended action: Upgrade to 1.3.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →