gRPC Ruby trusts compromised certificate authorities
Published: October 28, 2026
SECURITY IDENTIFIERS
- GHSA: GHSA-p3vr-xp4c-r8fh
- Vendor Advisory: https://github.com/grpc/grpc/security/advisories/GHSA-p3vr-xp4c-r8fh
GEM
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="/etc/ssl/certs/ca-certificates.crt"
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
- https://emudhra.we-have-a-problem.com/
- https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/0R3XLJL6FuE/m/0XofdebrAAAJ
- GHSA-6q48-6c7w-9gw2 (certifi)
- https://github.com/grpc/grpc/commit/8b32af3bf498c2ba9667410eaa8c836e700e97e6 (fix)
- GHSA-2xm2-c8xx-p9vh (gRPC Python)
- GHSA-gvrc-7wf9-p7hg (gRPC PHP)
- GHSA-mm89-g5jq-mmfq (gRPC Objective-C)
