Connection confusion in gRPC

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.

Basic information

Type
reviewed
Severity
high
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Not specified
Published (advisory)
2023-07-05 19:12:51 UTC
Updated
2025-08-13 14:56:13 UTC
GitHub reviewed
2023-07-05 20:26:48 UTC
NVD published
2023-06-09

EPSS Score

Score Percentile
0.07% 22.55%

CVSS Scores

Base score Version Severity Vector
7.4 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.

Identifiers

CWEs

CWE id Name
CWE-440 Expected Behavior Violation

Credits

  • jmatosgrafana (analyst)
  • picatz (analyst)
  • jonasfj (analyst)
  • tal-sealsecurity (analyst)

Affected packages (6)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
maven io.grpc:grpc-protobuf >= 1.53.0, < 1.53.1 1.53.1
pip grpcio >= 1.53.0, < 1.53.1 1.53.1
rubygems grpc >= 1.53.0, < 1.53.1 1.53.1
pip grpcio >= 1.54.0, < 1.54.2 1.54.2
rubygems grpc >= 1.54.0, < 1.54.2 1.54.2
maven io.grpc:grpc-protobuf >= 1.54.0, < 1.54.2 1.54.2

References

cvelogic Threat Intelligence