RATATOSK
← All releases

gRPCv1.86.0

Security 5Breaking changes 1Important fixes 3Enhancements 3Dependency updates 1Other changes 7

Get gRPC alerts

Email is sent weekly only when there are changes to check; critical security advisories are sent immediately.

Security5high1Security status unclear1

Channelz v2 QueryTrace denial-of-service flaw fixed

high
AffectsNot stated in the release notes

An untrusted caller able to send RPCs to grpc.channelz.v2.Channelz could stop the server process or block its worker threads. QueryTrace now checks its arguments, and server resources are released when the caller cancels the RPC.

Show release-note lines
Security advisory
Your server is affected only if both of these are true:
- Your gRPC C++ server activates Channelz with `grpc::channelz::experimental::InitChannelzService()`.
- An untrusted caller can send RPCs to the Channelz v2 service (`grpc.channelz.v2.Channelz`).
gRPC C++ did not correctly check the arguments and the state of the `QueryTrace` RPC. A remote caller can send `QueryTrace` requests that stop the server process or keep server worker threads blocked. This causes a denial of service (DoS).
The fix checks the `QueryTrace` arguments and releases server resources when the caller cancels the RPC.
- Do not call `grpc::channelz::experimental::InitChannelzService()` in production servers.
- Block access to `grpc.channelz.v2.Channelz` from untrusted callers. Use authentication, an authorization policy, or a network rule.
github.com/grpc/grpc/security/advisories/GHSA-mp3j-8555-cjpj
Security advisory
A denial of service (DoS) vulnerability was found and fixed in the gRPC C++ Channelz v2 service.
github.com/grpc/grpc/security/advisories/GHSA-mp3j-8555-cjpj

xDS resources checked against authority channels

AffectsxDS client setups

When an xDS resource arrives on a channel not configured for its authority, it is ignored rather than processed.

Show release-note lines
-  [XdsClient] check that resources are received from the right servers. ([#43695](https://github.com/grpc/grpc/pull/43695))
github.com/grpc/grpc/releases/tag/v1.86.0

gRPC repository root certificate bundle updated to Chromium roots

Affectscertificate validation using the gRPC repository root bundle(Inferred)
Show release-note lines
-  [Security] Update repo roots to chromium roots. ([#43890](https://github.com/grpc/grpc/pull/43890))
github.com/grpc/grpc/releases/tag/v1.86.0

SIGPIPE termination from c-ares DNS-over-TCP writes fixed

Security status unclear
Affectsc-ares DNS-over-TCP on POSIX platforms using MSG_NOSIGNAL or SO_NOSIGPIPE, including builds linking system c-ares 1.34.7 or later

If the DNS server had already closed or reset the TCP connection, a c-ares write could raise SIGPIPE and terminate the process. Now c-ares treats EPIPE as a connection error and retries the query or fails it without the process being killed.

Show release-note lines
-  [EventEngine] Avoid SIGPIPE on c-ares writes to closed TCP sockets. ([#43802](https://github.com/grpc/grpc/pull/43802))
github.com/grpc/grpc/releases/tag/v1.86.0

gRPC repository root-certificate bundle updated

Affectssetups using gRPC's repository root-certificate bundle to validate certificate chains(Inferred)

The updated bundle preserves emSign Root CA - G1.

Show release-note lines
-  [security] Update gRPC repo roots. ([#43699](https://github.com/grpc/grpc/pull/43699))
github.com/grpc/grpc/releases/tag/v1.86.0

Breaking changes1

InterceptedCall metadata methods return empty Metadata

AffectsPython AIO calls using InterceptedCall.initial_metadata() or InterceptedCall.trailing_metadata()

Previously, these methods could return None when a call was cancelled or an AioRpcError had no metadata. They now return an empty Metadata() in those cases and still return available metadata.

Evidence“Make `InterceptedCall` method `trailing_metadata` and `initial_metadata` return `Metadata` instead of `Optional[Metadata]`.” grpc/grpc/pull/42743 ↗
Show release-note lines
-  [Python] AIO Part 5 - Type Hints fixes and add Pyright for all aio files. ([#42743](https://github.com/grpc/grpc/pull/42743))
github.com/grpc/grpc/releases/tag/v1.86.0

Important fixes3

  • Python AIO non-OK call representation order fixed
    AffectsPython AIO call string and representation output(Inferred)

    For an ABORTED call, the representation shows StatusCode.ABORTED as the status, alongside the corresponding details text.

    -  [Python] Fix the ordering of status and details in _NON_OK_CALL_REPRESENTATION. ([#43869](https://github.com/grpc/grpc/pull/43869))
    github.com/grpc/grpc/releases/tag/v1.86.0
  • Synchronous Python Channel close deadlock fixed
    AffectsPython Channel closes through the synchronous API

    Previously, closing a channel while gRPC background threads were running Python callbacks, such as call-credentials plugins, could freeze the Python process. Completion-queue and channel destruction and gRPC shutdown now run without holding the GIL.

    -  [Python] Fix GIL deadlocks: Release GIL during grpc_channel_destroy/grpc_shutdown in Channel close. ([#43962](https://github.com/grpc/grpc/pull/43962))
    github.com/grpc/grpc/releases/tag/v1.86.0
  • Python credential factory crashes fixed
    AffectsPython credential factories grpc.xds_server_credentials() and ComputeEngineChannelCredentials

    Passing None or an empty fallback-credentials wrapper to grpc.xds_server_credentials(), or None call credentials to ComputeEngineChannelCredentials, could reach native code and crash the interpreter or abort the process. These inputs now raise ValueError instead.

    -  [Python]  Raise ValueError instead of crashing when credential factories receive None. ([#43592](https://github.com/grpc/grpc/pull/43592))
    github.com/grpc/grpc/releases/tag/v1.86.0

Enhancements3

  • Public TransportFactory API for non-xDS transports
    -  [API] Channel factory for Sidechannel communication for non-xds cases. ([#43603](https://github.com/grpc/grpc/pull/43603))
    github.com/grpc/grpc/releases/tag/v1.86.0
  • Version attribute added to grpcio_status
    -  [Python] Added Python API to retrieve library version of grpcio-status. ([#39037](https://github.com/grpc/grpc/pull/39037))
    github.com/grpc/grpc/releases/tag/v1.86.0
  • ChannelArgumentType added to grpc.aio exports
    -   [Python] AIO Part 6 - Type Hints fixes and add Pyright for all aio files #42738. ([#43608](https://github.com/grpc/grpc/pull/43608))
    github.com/grpc/grpc/releases/tag/v1.86.0

Dependency updates1

    1 more, none mentioning security
    • - [Core] Upgrade cares to 1.34.9. ([#43958](https://github.com/grpc/grpc/pull/43958))
    Other changes7
    • map_host_header_to_authority experiment enabled by default
      -  [chttp2] enable map_host_header_to_authority experiment. ([#43799](https://github.com/grpc/grpc/pull/43799))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • Windows ARM64 compiler handling fixed for setuptools 84
      -  [Python] Fix ARM64 Windows compiler patching with setuptools 84. ([#43785](https://github.com/grpc/grpc/pull/43785))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • Removed the setuptools installation requirement from grpcio-tools and grpcio-observability
      -  [Python] grpcio-tools , grpcio-observability: drop setuptools from install_requires. ([#43601](https://github.com/grpc/grpc/pull/43601))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • grpc_tools.protoc and grpc_tools.command use importlib.resources
      -  [Python] grpcio-tools , grpcio-observability: drop setuptools from install_requires. ([#43601](https://github.com/grpc/grpc/pull/43601))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • Python AIO type hints corrected
      -   [Python] AIO Part 6 - Type Hints fixes and add Pyright for all aio files #42738. ([#43608](https://github.com/grpc/grpc/pull/43608))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • Pyright configuration now covers all files in the AIO directory
      -   [Python] AIO Part 6 - Type Hints fixes and add Pyright for all aio files #42738. ([#43608](https://github.com/grpc/grpc/pull/43608))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • Type check added to _done_writing_flag
      -   [Python] AIO Part 6 - Type Hints fixes and add Pyright for all aio files #42738. ([#43608](https://github.com/grpc/grpc/pull/43608))
      github.com/grpc/grpc/releases/tag/v1.86.0

    Summaries are produced by AI, so they can be wrong, and they are provided without warranty.