cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

eMudhra CA key leak: Databricks LTS runtimes still trust the affected root.

Kirankumarbs
Honored Contributor

Background. In October 2026, eight eMudhra intermediate CA keys turned out to be recoverable from their public certificates. Browsers blocked them within days. Non-browser clients that carry their own trust store keep trusting the chain until that store is updated. On Databricks that means the Python and pip inside the runtime, not just the OS.

(from the release notes):

RuntimecertifipipOS
17.3 LTS2025.1.3125.0.1Ubuntu 24.04.3
14.3 LTS2022.12.7n/aUbuntu 22.04.3
12.2 LTS (end of support)2021.10.8n/aUbuntu 20.04.5

certifi 2025.1.31 lists four emSign roots, including `emSign ECC Root CA - G3`. The fixed bundle is 2026.10.19 or later, which keeps only `emSign Root CA - G1`. The newest 17.3 maintenance update I could find was dated 29 Sep, before the disclosure.

CPython 3.11.18, 3.12.16 and 3.13.18 reject the compromised intermediates in `ssl`, but DBR uses the OS Python, so you can't choose the patch release. And pip below 26.2.2 always loads its own vendored certifi on top of the system store, so `PIP_CERT` or `REQUESTS_CA_BUNDLE` only *add* certificates. They don't remove the bad ones.

Fix 1: certifi, per job: Either put it in your wheel's dependencies:

# requirements.txt / install_requires
certifi>=2026.10.19

or add it as a job library in your bundle:

libraries:
- pypi:
package: "certifi>=2026.10.19"

Gotcha: a dependency in your wheel only reaches jobs pinned to the new wheel version. Jobs still pinned to an older release keep the runtime's certifi until you bump their version in the bundle.

Fix 2: pip, before libraries install: 

pip can't safely upgrade itself through the pip that has the problem. A cluster init script runs before library installation and can bootstrap a hash-verified wheel, so the download is checked whatever pip trusts. Test it on one cluster first, and check your workspace's init-script allowlist for your access mode like

#!/bin/bash
set -euo pipefail
/databricks/python/bin/python -m pip install \
  "pip @ https://files.pythonhosted.org/packages/3f/06/3e4420302363fbb71be3c7f35ce042f54bfca330e3e66b3a2e3c4cca579f/pip-26.2.2-py3-none-any.whl#sha256=fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70"

 Check what a cluster actually trusts(notebook on a job cluster):

import certifi, pip, subprocess
print("certifi", certifi.__version__, "| pip", pip.__version__)
print("G3 in certifi bundle:", "emSign ECC Root CA - G3" in open(certifi.where()).read())
print(subprocess.run("ls /etc/ssl/certs | grep -i emsign", shell=True,
                     capture_output=True, text=True).stdout)
print(subprocess.run("keytool -list -cacerts -storepass changeit | grep -ci emsign",
                     shell=True, capture_output=True, text=True).stdout)

The OS store and the JVM `cacerts` belong to the runtime image (17.3 runs Zulu 17). Raise a support ticket and ask when an LTS maintenance update covers it. Runtimes past end of support, like 12.2, won't get one, so move off them.

Exploiting this needs a forged certificate *and* a position on the network path (DNS, proxy, routing). The highest-value targets are clients that send credentials or install code: package installs at cluster start, token endpoints, API clients.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Kirankumarbs
Honored Contributor

Fix 1: certifi, per job: Either put it in your wheel's dependencies.

Fix 2: pip, before libraries install

Helped us to overcome the Vulnerabilty!

View solution in original post

3 REPLIES 3

lorenzwalthert
New Contributor II

Thanks. I reached mainly the same conclusion looking at it a few days ago. I wonder if databricks is going to update serverless runtime versions regarding affected packages and python versions. That would be my preferred solution and make everyone safe by default. (How fast) do you think that will happen?

I was taken a back bit as well by seeing no notification from Databricks despite of their 17.3LTS is affected by it!

Ofcourse, there should be a middle man routing client connection to server where exposed credentials used and Databricks inside cloud env so possibilities are low but still VM is affected and Databricks should communicate mitigation or relese patch version

Kirankumarbs
Honored Contributor

Fix 1: certifi, per job: Either put it in your wheel's dependencies.

Fix 2: pip, before libraries install

Helped us to overcome the Vulnerabilty!