← All advisories

QSC-LIB-0202 · CWE-1104

Java runtime older than JDK 24 (no ML-KEM / ML-DSA)

Severity: MediumReadiness: Upgrade requiredQuantum threat: Shor

Summary

ML-KEM (JEP 496) and ML-DSA (JEP 497) arrived in JDK 24. Earlier runtimes need Bouncy Castle 1.79+ for PQC.

Why it matters

The application can't adopt PQC without a runtime or provider change.

How to fix

Plan the move to the next LTS with PQC (JDK 25 LTS), or add Bouncy Castle 1.79+ as a provider meanwhile.

  1. Update maven.compiler.release / Gradle toolchain.
  2. Or add org.bouncycastle:bcprov-jdk18on:1.79+ and register the provider.

Code samples

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

maven
<dependency>
  <groupId>org.bouncycastle</groupId>
  <artifactId>bcprov-jdk18on</artifactId>
  <version>1.80</version>
</dependency>

References