Skip to content

grpc: drop the eMudhra root from roots.pem (CVE-2026-111943) - #1547

Open
bryan-minimal wants to merge 1 commit into
mainfrom
grpc-emudhra
Open

bryan-minimal wants to merge 1 commit into
mainfrom
grpc-emudhra

Conversation

@bryan-minimal

Copy link
Copy Markdown
Member

Fixes GHSA-rjr3-9pq9-5wm4 (critical; CVE-2026-111943, the eMudhra key compromise), reported against grpc by last night's scan.

grpc 1.85.2's bundled root store (etc/roots.pem, 99 certs, shipped as usr/share/grpc/roots.pem in the roots output) includes emSign Root CA - G1 (eMudhra, sha256 40f6af03…). grpc reads this file when no system or env roots are configured. build.sh now removes that entry, as ca-certificates did on 2026-10-20.

Guards (the build fails):

  • if any eMudhra or emSign remains;
  • if the number of entry headers and of certs disagree;
  • if the count did not drop by exactly one, which catches a future grpc whose file changed.

Tested on the real 1.85.2 file:

  • 98 certs remain;
  • comparing the cert sets, exactly one was removed and none added;
  • the removed cert's fingerprint is 40f6af03…;
  • a second run fails (negative control).

Each entry is cut from its # <sha256> line to the next one, because 22 entries have a blank line inside them.

🤖 Generated with Claude Code

GHSA-rjr3-9pq9-5wm4 (critical, new on 2026-11-17) flags grpc's bundled
root store for trusting eMudhra. grpc 1.85.2's etc/roots.pem (99 certs),
installed as usr/share/grpc/roots.pem, holds emSign Root CA - G1
(sha256 40f6af03...). build.sh now removes that entry, as
ca-certificates did on 2026-10-20. The build fails if any eMudhra or
emSign name remains, or if the count does not drop by exactly one.

Tested on the 1.85.2 file: 98 certs remain, and the removed PEM's
fingerprint is 40f6af03. A second run fails, so a future grpc that
changes the file is caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bryan-minimal
bryan-minimal requested a review from a team as a code owner November 17, 2026 19:46
@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

This review includes 1 billable file and costs up to $0.25.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 57 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 66 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b891179 and 5569cad.

Files selected for processing: 1

  • packages/grpc/build.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant