Expected Behavior Violation Affecting grpc package, versions <1.58.3>=1.59.0, <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.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-GRPC-7641067
  • published6 Aug 2024
  • disclosed6 Aug 2024
  • creditUnknown

Introduced: 6 Aug 2024

CVE-2024-7246  (opens in a new tab)
CWE-440  (opens in a new tab)

How to fix?

Upgrade grpc to version 1.58.3, 1.59.5, 1.60.2, 1.61.3, 1.62.3, 1.63.2, 1.64.3, 1.65.4 or higher.

Overview

Affected versions of this package are vulnerable to Expected Behavior Violation via the HPackParser function when the gRPC client is communicating with an HTTP/2 proxy, allowing the attacker to poison the HPACK table. By manipulating the header encoding and poisoning the HPACK table between the proxy and the backend, an attacker can cause other gRPC clients to see failed requests or potentially leak HTTP header keys but not their values.

This vulnerability exists because the error status for a misencoded header is not cleared between header reads, resulting in subsequent (incrementally indexed) added headers in the first request being poisoned until cleared from the HPACK table.

CVSS Scores

version 4.0
version 3.1