← All advisories

QSC-ALG-0003 · CWE-327

Classical key agreement (ECDH, X25519, finite-field Diffie-Hellman)

Severity: CriticalReadiness: Fix availableQuantum threat: Shor

Summary

ECDH, X25519/X448 and finite-field Diffie-Hellman key agreement (TLS, SSH, IPsec, Signal-style protocols, application KEX) are broken by Shor's algorithm.

Why it matters

Recorded sessions can be decrypted later (harvest now, decrypt later). This is the highest-priority migration for data in transit.

How to fix

Use hybrid key exchange: X25519MLKEM768 in TLS 1.3, mlkem768x25519-sha256 in SSH, or ML-KEM-768 combined with the existing ECDH in custom protocols.

  1. Upgrade the TLS library (OpenSSL 3.5+, Go 1.24+, BoringSSL, AWS-LC, rustls) and enable X25519MLKEM768 ahead of classical groups.
  2. For custom protocols, combine ECDH and ML-KEM shared secrets through a KDF (hybrid) rather than replacing ECDH outright.
  3. Test with partners and middleboxes: hybrid key shares are larger (about 1.2 KB) and some old devices drop them.

Code samples

Illustrative: confirm against your runtime’s documentation before shipping.

config
# OpenSSL 3.5+ (openssl.cnf)
[system_default_sect]
Groups = X25519MLKEM768:X25519:secp256r1

Until the provider is ready

Interim mitigations while platform support catches up.

  • Terminate external TLS at a hybrid-capable edge (CDN, load balancer or reverse proxy) while internal services catch up.

References