RubySec

Providing security resources for the Ruby community

GHSA-p3vr-xp4c-r8fh (grpc): gRPC Ruby trusts compromised certificate authorities

gRPC Ruby trusts compromised certificate authorities

Published: October 28, 2026

SECURITY IDENTIFIERS

GEM

grpc

PATCHED VERSIONS

>= 1.78.2, < 1.80.0.a >= 1.80.1, < 1.81.0.a >= 1.81.2, < 1.82.0.a >= 1.82.3, < 1.83.0.a >= 1.83.2, < 1.84.0.a >= 1.84.1

DESCRIPTION

Summary

gRPC Ruby (the grpc gem) verifies TLS connections against its bundled root certificate store (roots.pem) by default. In affected versions, this store trusts certificates issued by eight eMudhra intermediate CAs whose private keys are compromised. These intermediates have been revoked, but they still chain to the bundled emSign ECC Root CA - G3 root.

An attacker with one of the compromised keys can issue certificates for any hostname, and gRPC Ruby accepts them. An attacker who also has an on-path position can intercept or modify gRPC traffic.

Upgrade to the patched version for your release line, or to 1.84.1 or later.

Details

The bundled store is separate from the operating system's trust store. On its own, updating the OS store (for example, ca-certificates) doesn't affect it. gRPC doesn't check certificate revocation (CRL/OCSP) by default, so revoking the intermediates doesn't mitigate the issue. gRPC also doesn't enforce Certificate Transparency, so it accepts certificates that were never publicly logged.

Sectigo's AAA Certificate Services has also cross-signed the compromised intermediates. Older gRPC Ruby releases bundle that root as well, so they're affected even if they predate the emSign root. The patched releases trust neither root.

Workarounds

If you can't upgrade the grpc gem, first make sure the system CA bundle is up to date. For example, on Debian 13 (trixie), update the ca-certificates package to 20250419+deb13u1 or later (DSA-6572-1). Then point gRPC Ruby at that bundle by setting the GRPC_DEFAULT_SSL_ROOTS_FILE_PATH environment variable before starting your application. On Debian, that bundle is at /etc/ssl/certs/ca-certificates.crt:

export GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=&quot;/etc/ssl/certs/ca-certificates.crt&quot;

gRPC Ruby then uses this file instead of its bundled roots. If the file is missing or unreadable, gRPC Ruby logs an error and falls back to the bundled roots.

References