CVE-2026-18040
published medium CVSS 4.0 · 5.9HQC leaks private key information through secret-indexed GF(2^8) tables and a secret-dependent fixed-weight sampler
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Legion of the Bouncy Castle Inc. | — | bcprovBC-JAVA · 1.73 to < 1.86 · Other versions: unaffected · Platforms: all | Affected | Not stated | bcorg |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP4 | bouncycastlenoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP4 | bouncycastle-pgnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP4 | bouncycastle-pkixnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP4 | bouncycastle-utilnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP5 | bouncycastlenoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP5 | bouncycastle-pgnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
Show 82 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP5 | bouncycastle-pkixnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP5 | bouncycastle-utilnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP6 | bouncycastlenoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP6 | bouncycastle-pgnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP6 | bouncycastle-pkixnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP6 | bouncycastle-utilnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP7 | bouncycastlenoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP7 | bouncycastle-pgnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP7 | bouncycastle-pkixnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP7 | bouncycastle-utilnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-16 | bouncycastlenoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastlenoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastlenoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-javadocnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-javadocnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-javadocnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-jmailnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-jmailnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-jmailnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-mailnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-mailnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-mailnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pgnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pgnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pgnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pkixnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pkixnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pkixnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-tlsnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-tlsnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-tlsnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-utilnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-utilnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-utilnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastlenoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-javadocnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-jmailnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-mailnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-pgnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-pkixnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-tlsnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-utilnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastlenoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-javadocnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-jmailnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-mailnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-pgnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-pkixnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-tlsnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-utilnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastleaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastleppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastles390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastlex86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-javadocaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-javadocppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-javadocs390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-javadocx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-jmailaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-jmailppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-jmails390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-jmailx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-mailaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-mailppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-mails390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-mailx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pgaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pgppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pgs390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pgx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pkixaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pkixppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pkixs390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pkixx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-tlsaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-tlsppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-tlss390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-tlsx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-utilaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-utilppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-utils390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-utilx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- bcorg · cna
- Vector string
- CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/U:Amber
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Legion of the Bouncy Castle Inc. | BC-JAVA | 1.73 to < 1.86 (affected · maven)Default: unaffected | bcorg · cna |
Weaknesses
1- CWE-208 CWE-208 Observable Timing Discrepancy
References
2Provider assertions
2bcorg · cna
HQC leaks private key information through secret-indexed GF(2^8) tables and a secret-dependent fixed-weight sampler
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e09a45a359b9ea11ea2323551b21952a6c4c157d76dc127d2105c3356166c343
- Ingested
- 05 Oct 2026, 17:10:30 UTC
- Source record
- Official CVE record