CVE-2026-18040HQC leaks private key information through secret-indexed GF(2^8) tables and a…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | bouncycastle | Fix pending | UBUNTU-CVE-2026-18040 | |
| Ubuntu 26.04 | bouncycastle | Under investigation | UBUNTU-CVE-2026-18040 | |
| Ubuntu 24.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-18040 | |
| Ubuntu 22.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-18040 | |
| Ubuntu 20.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-18040 | |
| Ubuntu 18.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-18040 | |
| Ubuntu 16.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-18040 | |
| Debian 14 | bouncycastle | Fixed | 1.86-1 | DEBIAN-CVE-2026-18040 |
| Debian 13 | bouncycastle | Fix pending | DEBIAN-CVE-2026-18040 | |
| Debian 12 | bouncycastle | Fix pending | DEBIAN-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.
- Legion of the Bouncy Castle Inc. BC-JAVA: affected: 1.73 to before 1.86; fixed in
1.86
Vendor advisories:
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9018040 (vendor-advisory)
- https://github.com/bcgit/bc-java/commit/283acd81048ec9e951032525279d3b58aaf0bb03 (patch)
References
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9018040
- https://github.com/bcgit/bc-java/commit/283acd81048ec9e951032525279d3b58aaf0bb03
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.