Skip to main content

Security advisory · TLS · code signing

EMUDHRA

Severity · Critical8 intermediate CAsTLS · code signing

Published · updated

On 2026-10-17 a researcher found that the private keys of eight eMudhra intermediate CAs — six for TLS, two for code signing — could be recovered near instantly. Several people have since recovered them independently: treat the keys as public.

Anyone holding one can issue a certificate for any domain, and any client that still trusts the chain and does not enforce Certificate Transparency will accept it. It is not a weakness in TLS encryption.

No certificates from these CAs appear in the CT logs, so CT-enforcing browsers — Firefox, Chrome, Edge, Safari — could not have been attacked. No source reports misuse, and none can rule it out for clients that skip CT: curl, language runtimes, agents and container images.

Impact
A forged certificate for any domain
Exposed
Clients that skip CT: curl, language runtimes, agents, container images
Not exposed
CT-enforcing browsers: Firefox, Chrome, Edge, Safari
Keys found
Swamp fixed in
20261021.223953.0

[01]

Eight compromised CAs

[A]Timeline

  1. 10-17

    Weak keys found and reported to the root programs; Chrome (CRLSet) and Firefox (OneCRL) block the TLS intermediates the same day.

  2. 10-18

    eMudhra revokes all eight intermediates; Mozilla opens its incident bug.

  3. 10-19

    Sectigo revokes its cross-signs; webpki-roots 1.0.10 and Go 1.27.3 / 1.26.10 ship.

  4. 10-20

    Public disclosure; Mozilla and Chrome announce they will remove trust in emSign ECC Root CA - G3; NSS 3.131.1, Debian, Ubuntu and Alpine updates.

  5. 10-21

    Deno 2.9.8 ships the fix (denoland/deno#37046); Swamp 20261021.223953.0 ships on it.

  6. 10-27

    Chrome's removal of the emSign root is due to reach all devices.

[B]Indicators

  • Any end-entity certificate issued by an EM DV/OV/EV TLS CA - G3B or G3C intermediate. None was ever issued legitimately, so one in your logs is forged.
  • A trust store that still holds emSign ECC Root CA - G3 (SHA-256 86A1ECBA…BE6B) without blocking the eight intermediates.
  • A client that connects to dv-g3b-emudhra.we-have-a-problem.com without a certificate error.

[C]Mitigations

  • Update ca-certificates (Debian DSA-6572-1, Ubuntu USN-8944-1, Alpine 20261020-r0) and rebuild container images that vendor a CA bundle.
  • Update runtimes that bundle their own roots: Go 1.27.3/1.26.10, Node.js 22.23.4/24.22.1/26.12.1, certifi 2026.10.19, pip 26.2.2, rustls-webpki 0.103.16, webpki-roots 1.0.10, Deno 2.9.8, Electron 42.11.16/43.8.1/44.9.1.
  • Update agents: cloudflared 2026.10.2, Cloudflare One / WARP 2026.8.2115.0.
  • Restart long-running services so they reload their trust store.
  • Never clear a certificate error by disabling verification.

[02]

Check and fix with Swamp

  1. Step 1:Am I affected?

    A host is likely exposed if any of these is true.

    A browser or curl test proves only that one client is fixed: another verifier on the same host can still trust the chain.

    • Its ca-certificates package predates your distro's fix, or the distro has not shipped one.
    • It runs software that bundles its own roots — Go, Node.js, Python certifi or pip, Rust webpki-roots, Deno, Bun, Java, Electron — on a version older than the fix.
    • It runs container images built before 2026-10-20 that carry their own CA bundle.
    • It is a Mac. Apple's block rejects the TLS copies, but the cross-signed code-signing copies still verify, and /etc/ssl/cert.pem (built-in curl, git, python3) still carries both roots. Homebrew's CA bundle can still carry them too.
    • It runs Windows without Microsoft's disallowed-list update of 2026-10-20, or with automatic root and disallowed-list updates turned off: CryptoAPI then still trusts the intermediates. Git for Windows ships its own bundle, which can still carry the roots.
  2. Step 2:Swamp itself

    Swamp is a compiled Deno binary, so it trusts Deno's bundled roots. Releases up to 20261021.015131.0-sha.bfde0792 are built on Deno 2.9.7, and their own HTTPS connections trust the compromised chain.

    Fixed in 20261021.223953.0-sha.ea2a36f5 and later, which build Swamp on Deno 2.9.8: it distrusts the eight intermediates and the emSign root. Tracked in Lab #3699.

    Update Swamp:

    swamp update

    Check the version is 20261021.223953.0 or later:

    swamp version
  3. Step 3:Install Swamp and the scanner

    The @swamp/cve/emudhra extension checks Linux, macOS and Windows hosts and Linux containers. It judges each compromised intermediate with the verifier the host's clients use — openssl verify on Linux, security verify-cert on macOS, CryptoAPI on Windows — then checks the runtimes, language stores, Electron apps and agents that carry their own roots.

    scan needs no root or administrator rights and leaves nothing on the target.

    Install Swamp:

    curl -fsSL https://swamp-club.com/install.sh | sh

    Initialize a new repo (run this in a new empty directory):

    swamp repo init

    Pull the scanner:

    swamp extension pull @swamp/cve/emudhra

    Create the scanner instance:

    swamp behavior create @swamp/cve/emudhra emudhra-scanner

    Am I exposed:

    swamp behavior run emudhra-scanner scan

    Mitigate (a dry run unless you pass dryRun=false):

    swamp behavior run emudhra-scanner mitigate

    Set dockerImage or dockerContainer with --global-arg to scan an image or a running container instead.

    Swamp on Linux or macOS can scan all of them. Swamp on Windows scans itself and Linux or macOS hosts over SSH, through temporary files it removes afterwards, but not another Windows host over SSH: scan that one locally or from Linux or macOS. Windows containers are not supported.

  4. Step 4:Scan your fleet

    Give the scanner your SSH user and key when you create it, then pass a comma-separated list of hosts and scanFleet scans each one in parallel. A host that needs a different login takes it as user@host; plain entries use sshUser, and every host uses sshKey.

    swamp behavior create @swamp/cve/emudhra emudhra-fleet \
        --global-arg sshUser=ubuntu \
        --global-arg sshKey=~/.ssh/id_ed25519
    swamp behavior run emudhra-fleet scanFleet \
        --input hosts=ubuntu@10.0.1.50,admin@10.0.1.51,10.0.1.52

    ›Scan results

    Four real scans with the live check: Debian 12 on its 20230311 package, stock Fedora 43 and Alpine 3.22, and Ubuntu 24.04 with ca-certificates installed. Hosts are container IDs.

    HostOSRiskOS storeca-certificatesExposed componentsLive check
    f5dc79b7b965Debian GNU/Linux 12 (bookworm)CRITICALTRUSTS (emsign, aaa path)20230311+deb12u1 (exposed)nonecurl emsign: accepted, openssl emsign: accepted, curl aaa: accepted, openssl aaa: accepted
    2f63ffc012d8Fedora Linux 43 (Container Image)CRITICALTRUSTS (emsign path)2025.2.80_v9.0.304-1.2.fc43 (exposed)java-cacertscurl emsign: accepted, curl aaa: rejected
    9fe54e4fb185Alpine Linux v3.22CRITICALTRUSTS (emsign path)20260909-r0 (exposed)none-
    bfc23350c576Ubuntu 24.04.5 LTSNONErejects20260816ubuntu0.24.04.1 (fixed)nonecurl emsign: rejected, openssl emsign: rejected, curl aaa: rejected, openssl aaa: rejected
  5. Step 5:Mitigate across your fleet

    mitigate re-scans each host and skips the clean ones. On an exposed host it upgrades ca-certificates; if the store still trusts the intermediates, it distrusts the root as the upstream fixes do, upgrades cloudflared and WARP, then rescans.

    On Windows it adds each intermediate CryptoAPI still trusts to the Disallowed store, and needs an elevated administrator session. On macOS it never changes trust over SSH: it saves a deny-trust script to run locally with sudo, or to send as an MDM payload.

    dryRun defaults to true — the method shows the plan and changes nothing. Pass dryRun=false to apply. It only connects to SSH hosts whose key is already known, so run scanFleet first:

    swamp behavior run emudhra-fleet mitigate \
        --input hosts=ubuntu@10.0.1.50,admin@10.0.1.51,10.0.1.52 \
        --input dryRun=false

    Without root or matching passwordless sudo, or on Windows without an elevated session, a host is reported as needs-privilege, nothing is changed, and a mitigationScript is saved for you to review and run — a .ps1 on Windows. Containers are never modified: mitigate reports the Dockerfile change to rebuild with. Deno, Swamp, Bun, Java stores, certifi and other bundles, Electron apps and lockfiles are reported as manual steps. It never disables certificate verification.

Find every host still trusting the chain

Pull the scanner and run it across every host and image you own.

swamp extension pull @swamp/cve/emudhra