Skip to main content
VulnerabilityPublished Updated

CVE-2026-18040: Legion of the Bouncy Castle BC-JAVA · Timing Side Channel

Affects Legion of the Bouncy Castle BC-JAVASource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.9 Medium : upgrade to 1.86 when convenient.

Data as of 17 Nov 2026, 20:25 UTC

CVSS 4.0 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 1% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CISA SSVC
Exploitation
No evidence of active exploitation and no public proof of concept
Automatable
Attackers cannot reliably automate steps 1–4 of the kill chain
Technical impact
Limited control over the software or limited information exposure

CISA SSVC assessment, 2026-10-05.

Patch
Available – fixed in 1.86
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.

What to do

Upgrade BC-JAVA and Legion of the Bouncy Castle Inc./bcprov to 1.86.

Affected software

ProductAffectedFixed in
Legion of the Bouncy Castle Inc.BC-JAVAAffected
  • >=1.73 <1.86
Fixed in
  • 1.86
MavenLegion of the Bouncy Castle Inc./bcprovpkg:maven/Legion of the Bouncy Castle Inc./bcprovOther threatsAffected
  • >=1.73 <1.86
Fixed in
  • 1.86

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Bouncy Castle for Java to version 1.86 or later, where the vulnerability is fixed by removing table lookups and making the sampler branch-free. No other mitigation is indicated or required as the fix addresses the side-channel leakage directly.

Description

CVE-2026-18040 is a timing side-channel vulnerability in Bouncy Castle for Java versions from 1.73 up to but not including 1.86. It involves leakage of secret-derived data during HQC encapsulation and decapsulation due to cache-timing effects in GF(2^8) arithmetic and a fixed-weight support sampler. The vulnerability allows an attacker observing cache behavior or timing to gain information about the HQC private key. The issue is fixed in version 1.86 by removing table lookups and making the sampler branch-free.

References

Community reviews

Loading reviews…