Skip to content
RedCVE

CVE-2026-18040Legion OF The Bouncy Castle Inc BC-JAVA vulnerability

CVSS score

5.9

Medium

CVSS 4.0 from 91579145-5d7b-4cc5-b925-a0262ff19630

Exploit probability (EPSS)

0.11%

0.11% chance of exploitation in the next 30 days, higher than 1.14% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official 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.

Source: NVD · CNA: 91579145-5d7b-4cc5-b925-a0262ff19630

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Legion of the Bouncy Castle Inc. BC-JAVA and compare its version with the affected versions.

  2. Update to a fixed version

    • Update BC-JAVA to 1.86 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Local
Attack complexity
High
Attack requirements
Present
Privileges required
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None

Values in red make the vulnerability easier to exploit or more damaging. 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber

Affected products

Affected productsVersions
Legion of the Bouncy Castle Inc. BC-JAVA≥ 1.73, < 1.86

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-18040 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.1% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-18040?

CVE-2026-18040 has a CVSS 4.0 base score of 5.9 (medium).

Which versions are affected?

Legion OF The Bouncy Castle Inc BC-JAVA (≥ 1.73, < 1.86)

Is there a patch for CVE-2026-18040?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.