Bouncy Castle HQC leaks private-key information through cache and timing behavior
Bouncy Castle disclosed two side channels in its Java HQC implementation: secret-indexed field-arithmetic tables and secret-dependent fixed-weight sampling. BC-Java versions from 1.73 before 1.86 are affected; version 1.86 fixes these paths. The advisory establishes leakage of private-key information, not a demonstrated full key recovery or a mathematical break of HQC.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
The sampler re-expands a long-term secret seed on every decapsulation, allowing repeated timing measurements without chosen ciphertexts. The vendor replaces table-based field arithmetic with fixed-operation code and removes secret-dependent scans and output indexing inside sampler batches while preserving known-answer outputs.
The affected component is reachable through the lightweight API and BouncyCastlePQCProvider. The default BouncyCastleProvider exposes only key-info converters for HQC, and the LTS distribution does not ship this component. BC-Java 1.86 release notes are dated September 11, 2026, its announcement September 15, and the vendor advisory October 2; this event is dated by CVE publication on October 3. The specified sampler still has a data-dependent number of candidate batches, so the advisory does not establish a universally constant-time implementation.
Sources
- primary disclosureVendor advisory: HQC secret-indexed tables and fixed-weight samplerBouncy Castle, github.com
- primary disclosureCVE-2026-18040 vendor CNA recordBouncy Castle CNA, cveawg.mitre.org
- primary disclosureBouncy Castle Java 1.86 release announcementBouncy Castle, bouncycastle.org