Skip to content

fix(security): backport eMudhra root CA fix (#47670) to stable/1.106.x - #47906

Closed
JehandadK wants to merge 1 commit into
BerriAI:stable/1.106.xfrom
JehandadK:litellm_backport_47670_stable_1_106_x
Closed

JehandadK wants to merge 1 commit into
BerriAI:stable/1.106.xfrom
JehandadK:litellm_backport_47670_stable_1_106_x

Conversation

@JehandadK

@JehandadK JehandadK commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • Every 1.106.x image still trusts emSign ECC Root CA - G3, the root that the leaked eMudhra intermediates chain to. Both the system bundle (ca-certificates-bundle-20260611-r1) and certifi 2026.04.22 contain it, so a forged certificate for a provider such as OpenAI would be accepted.
  • The fix (fix(security): stop trusting the compromised eMudhra root CA #47670) is only on main, so the only way to get it today is to move to 1.107.

How it solves it:

Picks

This is a mechanical pick. The 1.106 patch bump is not included and is still owed before a v1.106.3 release.

Relevant issues

Requested in #47904. Source fix #47670. Mozilla bug 2083449, incident page https://emudhra.we-have-a-problem.com/

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests. This is a dependency and base-image backport, and fix(security): stop trusting the compromised eMudhra root CA #47670 added no tests either; the proof below checks the shipped trust stores directly.
  • The handful of test files covering my change pass locally. uv lock --check passes with the repo's uv 0.11.7 (460 packages resolved), and cargo metadata --locked passes in litellm-rust.
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Screenshots / Proof of Fix

Each check looks for "emSign ECC Root CA - G3" in a trust store the image ships.

Before: ghcr.io/berriai/litellm-non_root:v1.106.2 (sha256:07fabea33dfc…)

  • System bundle: ca-certificates-bundle-20260611-r1, emSign ECC Root CA - G3 present
  • certifi: 2026.04.22, root present
  • The runtime-stage apk upgrade can't fix this on the old base: /etc/apk/world pins ca-certificates-bundle=20260611-r1, and apk upgrade respects the pin.

After: this branch, docker/Dockerfile.non_root, built for linux/amd64

docker buildx build --platform linux/amd64 -f docker/Dockerfile.non_root . on 3b157f4d93:

  • litellm 1.106.2 (version unchanged, so the bump is still owed)
  • System bundle: ca-certificates-bundle-20260909-r3, 118 roots, emSign ECC Root CA - G3 absent
  • certifi: 2026.10.19, 120 roots, root absent
  • openssl verify of the 12 leaked TLS intermediates published on the incident page (the emSign Root TLS CA - G3 and Sectigo AAA cross-signs) against each bundle: 0 / 12 verify in both
  • litellm.llms.custom_httpx.http_handler.get_ssl_configuration() handshakes with api.openai.com, api.anthropic.com and oauth2.googleapis.com
  • Prisma 5.4.2 picks the debian-openssl-3.0.x query engine, with libssl3-3.6.5-r5 installed alongside OpenSSL 4
  • litellm --port 4000 boots (with LITELLM_MASTER_KEY set), and /health/liveliness → 200 with no tracebacks

Type

🐛 Bug Fix

Caveats (if any)

…#47670)

Update certifi, Rust trust roots, and the Docker CA bundle to remove emSign ECC Root CA - G3

Require the fixed certifi release in litellm-core and retain libssl3 in Docker runtimes for Prisma compatibility

Co-authored-by: shin-berri <shin-laptop@berri.ai>
(cherry picked from commit f2118fc)
@JehandadK

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #48078, which backported #47670 (along with #47969) to stable/1.106.x and shipped in v1.106.3. Thanks for the quick backport!

@JehandadK JehandadK closed this Oct 28, 2026
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.

2 participants