CVEfocus › CVE database › CVE-2026-18040

CVE-2026-18040HQC leaks private key information through secret-indexed GF(2^8) tables and a…

CVSS 5.9 MediumEPSS 0.1% (higher than 2% of CVEs)Published 2026-10-03Updated 2026-10-05Assigner: bcorg

In Bouncy Castle for Java before 1.86, HQC leaked secret-derived data through two side channels: its GF(2^8) arithmetic used lookup tables indexed by field elements, making the cache line touched a function of the operand, and its fixed-weight support sampler left its duplicate scan as soon as a collision was found and stored accepted positions at a secret index. Both run on secret inputs during encapsulation and decapsulation, and the sampler re-expands the secret key from its seed on every decapsulation, so an attacker able to observe cache behaviour or decapsulation timing can recover information about the HQC private key. The field arithmetic is now table-free and the sampler branch-free within a batch of candidates, with output and randomness consumption unchanged.

CWE-208

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
8Fix pending
1Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10bouncycastleFix pendingUBUNTU-CVE-2026-18040
Ubuntu 26.04bouncycastleUnder investigationUBUNTU-CVE-2026-18040
Ubuntu 24.04bouncycastleFix pendingUBUNTU-CVE-2026-18040
Ubuntu 22.04bouncycastleFix pendingUBUNTU-CVE-2026-18040
Ubuntu 20.04bouncycastleFix pendingUBUNTU-CVE-2026-18040
Ubuntu 18.04bouncycastleFix pendingUBUNTU-CVE-2026-18040
Ubuntu 16.04bouncycastleFix pendingUBUNTU-CVE-2026-18040
Debian 14bouncycastleFixed1.86-1DEBIAN-CVE-2026-18040
Debian 13bouncycastleFix pendingDEBIAN-CVE-2026-18040
Debian 12bouncycastleFix pendingDEBIAN-CVE-2026-18040

What the vendor says

As published in the CVE record by bcorg, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.