CVE-2023-32732: Grpc protobuf GRPC Connection Termination Issue Vulnerability

MODERATE
Advisory Identifier: GHSA-9hxf-ppjv-w6rq
CVSS 5.3
CWE-440
Published
Advisory Summary

CVE-2023-32732 is a MODERATE (CVSS 5.3) grpc connection termination issue vulnerability (CWE-440: Expected Behavior Violation) affecting Grpc protobuf libraries in the Maven ecosystem. The issue involves grpc connection termination issue. Remediation is available by upgrading affected packages to version 1.53.1, 1.54.2.

CVE-2023-32732 at a Glance

CVE Identifier CVE-2023-32732
GHSA Identifier GHSA-9hxf-ppjv-w6rq
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-440: Expected Behavior Violation
Affected Product Grpc protobuf
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2023-32732

To remediate this vulnerability, upgrade all affected Grpc protobuf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

io.grpc:grpc-protobuf fixed: 1.53.1
<dependency>
    <groupId>io.grpc</groupId>
    <artifactId>grpc-protobuf</artifactId>
    <version>1.53.1</version>
</dependency>
grpcio fixed: 1.53.1
pip install grpcio>=1.53.1
grpc fixed: 1.53.1
Upgrade grpc to 1.53.1
io.grpc:grpc-protobuf fixed: 1.54.2
<dependency>
    <groupId>io.grpc</groupId>
    <artifactId>grpc-protobuf</artifactId>
    <version>1.54.2</version>
</dependency>
grpcio fixed: 1.54.2
pip install grpcio>=1.54.2
grpc fixed: 1.54.2
Upgrade grpc to 1.54.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=io.grpc

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-32732, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.grpc

Analyze the terminal output to locate any version of Grpc protobuf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.53.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.grpc command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-440: Expected Behavior Violation, where a feature, api, or function does not perform according to its specification. In Grpc protobuf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2023-32732 Affected Grpc protobuf Versions

6 component(s)
Fixed Versions:
1.53.11.54.2
Product / Package Ecosystem Affected Versions Fixed Version
io.grpc:grpc-protobuf
Maven
≥ 1.53.0
< 1.53.1
1.53.1
grpcio
PyPI
≥ 1.53.0
< 1.53.1
1.53.1
grpc
RubyGems
≥ 1.53.0
< 1.53.1
1.53.1
io.grpc:grpc-protobuf
Maven
≥ 1.54.0
< 1.54.2
1.54.2
grpcio
PyPI
≥ 1.54.0
< 1.54.2
1.54.2
grpc
RubyGems
≥ 1.54.0
< 1.54.2
1.54.2

References

Frequently Asked Questions

What is CVE-2023-32732?
CVE-2023-32732 is a security vulnerability in Grpc protobuf involving gRPC connection termination issue under CWE-440: Expected Behavior Violation.
Which Grpc protobuf versions are affected?
Affected versions include releases prior to 1.53.1, 1.54.2 across affected packages: io.grpc:grpc-protobuf, grpcio, grpc.
What version fixes CVE-2023-32732?
Upgrading to 1.53.1, 1.54.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is grpc-protobuf affected?
Yes, io.grpc:grpc-protobuf is affected in releases prior to 1.53.1, 1.54.2. Upgrade your dependency to 1.53.1, 1.54.2 or later.
Is grpcio affected?
Yes, grpcio is affected in releases prior to 1.53.1, 1.54.2. Upgrade your dependency to 1.53.1, 1.54.2 or later.
What is the CVSS score of CVE-2023-32732?
CVE-2023-32732 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2023-32732?
CVE-2023-32732 is classified under CWE-440: Expected Behavior Violation (A feature, API, or function does not perform according to its specification.).
How can I check Maven dependencies for CVE-2023-32732?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.grpc'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9hxf-ppjv-w6rq",
  "modified" : "2025-08-13T15:00:12Z",
  "published" : "2023-07-06T21:15:08Z",
  "aliases" : [ "CVE-2023-32732" ],
  "summary" : "gRPC connection termination issue",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.grpc:grpc-protobuf"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.53.0"
      }, {
        "fixed" : "1.53.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "grpcio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.53.0"
      }, {
        "fixed" : "1.53.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "grpc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.53.0"
      }, {
        "fixed" : "1.53.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.grpc:grpc-protobuf"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.54.0"
      }, {
        "fixed" : "1.54.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "grpcio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.54.0"
      }, {
        "fixed" : "1.54.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "grpc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.54.0"
      }, {
        "fixed" : "1.54.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32732"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grpc/grpc/pull/32309"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grpc/grpc/commit/29d8beee0ac2555773b2a2dda5601c74a95d6c10"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grpc/grpc/commit/65a2a895afaf1d2072447b9baf246374b182a946"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grpc/grpc/releases/tag/v1.53.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grpc/grpc/releases/tag/v1.54.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/grpc/CVE-2023-32732.yml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/37IDNVY5AWVH7JDMM2SDTL24ZPPZJNSY"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VWE44J5FG7THHL7XVEVTNIGEYBNKJBLL"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-440" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-06T23:56:31Z",
    "nvd_published_at" : "2023-06-09T11:15:09Z"
  }
}