GitHub Advisoryadvisory · Maven, PyPI, RubyGems

GHSA-cfgp-2977-2fmm Connection confusion in gRPC

HIGH Published 2023-07-05 Modified 2025-08-13 Official page ↗
Aliases
CVE-2023-32731
Ecosystem
Maven, PyPI, RubyGems
Packages
io.grpc:grpc-protobuf, grpcio, grpc
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
Weaknesses
CWE-440
Reviewed
2023-07-05

Affected packages

• Maven io.grpc:grpc-protobuf: >= 1.53.0, < 1.53.1 → fixed in 1.53.1 • PyPI grpcio: >= 1.53.0, < 1.53.1 → fixed in 1.53.1 • RubyGems grpc: >= 1.53.0, < 1.53.1 → fixed in 1.53.1 • PyPI grpcio: >= 1.54.0, < 1.54.2 → fixed in 1.54.2 • RubyGems grpc: >= 1.54.0, < 1.54.2 → fixed in 1.54.2 • Maven io.grpc:grpc-protobuf: >= 1.54.0, < 1.54.2 → fixed in 1.54.2

Description

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.

Related

Alias · CVE (1)

  • CVE-2023-32731 When gRPC HTTP2 stack raised a header size exceeded error, it skipped parsing the rest of the HPACK frame. vulnerability

Weakness · CWE (1)

  • CWE-440 Expected Behavior Violation weakness

References