CVE-2026-18036: CWE-208 Observable Timing Discrepancy in Legion of the Bouncy Castle Inc. BC-JAVA
CVE-2026-18036 is a timing side-channel vulnerability in Bouncy Castle for Java versions 1.73 up to but not including 1.86. The issue arises from the use of integer division operations on secret values during cryptographic computations in the NTRU algorithm, where the division latency depends on secret operands. This timing discrepancy can leak information about the NTRU private key to an attacker capable of precise timing measurements. The vulnerability has been addressed by replacing division operations with constant-time masking and division-free implementations in version 1.86.
AI Analysis
Technical Summary
In Bouncy Castle for Java before version 1.86, the NTRU implementation used integer division operations on secret values during key generation, encapsulation, and decapsulation. These divisions, specifically in Polynomial.modQ, Polynomial.mod3, and NTRUSampling.mod3, had latency dependent on secret operands, creating a timing side-channel (CWE-208). An attacker measuring these timing differences could potentially recover information about the private key. The fix in version 1.86 replaces these divisions with constant-time masking (for modQ, leveraging q as a power of two) and division-free fold and select operations (for mod3), eliminating the timing discrepancy without changing the cryptographic results.
Potential Impact
An attacker capable of measuring timing differences during cryptographic operations involving the NTRU algorithm could gain information about the private key, potentially compromising the confidentiality of the key material. This vulnerability affects the security of cryptographic operations in affected versions of Bouncy Castle for Java, potentially enabling key recovery attacks.
Mitigation Recommendations
Upgrade to Bouncy Castle for Java version 1.86 or later, where the timing side-channel has been mitigated by replacing secret-dependent division operations with constant-time implementations. No other mitigation is required as the fix is included in the official release.
CVE-2026-18036: CWE-208 Observable Timing Discrepancy in Legion of the Bouncy Castle Inc. BC-JAVA
Description
CVE-2026-18036 is a timing side-channel vulnerability in Bouncy Castle for Java versions 1.73 up to but not including 1.86. The issue arises from the use of integer division operations on secret values during cryptographic computations in the NTRU algorithm, where the division latency depends on secret operands. This timing discrepancy can leak information about the NTRU private key to an attacker capable of precise timing measurements. The vulnerability has been addressed by replacing division operations with constant-time masking and division-free implementations in version 1.86.
CVSS v4.0
Score 8.2high
Affected software
Legion of the Bouncy Castle Inc.
BC-JAVA
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In Bouncy Castle for Java before version 1.86, the NTRU implementation used integer division operations on secret values during key generation, encapsulation, and decapsulation. These divisions, specifically in Polynomial.modQ, Polynomial.mod3, and NTRUSampling.mod3, had latency dependent on secret operands, creating a timing side-channel (CWE-208). An attacker measuring these timing differences could potentially recover information about the private key. The fix in version 1.86 replaces these divisions with constant-time masking (for modQ, leveraging q as a power of two) and division-free fold and select operations (for mod3), eliminating the timing discrepancy without changing the cryptographic results.
Potential Impact
An attacker capable of measuring timing differences during cryptographic operations involving the NTRU algorithm could gain information about the private key, potentially compromising the confidentiality of the key material. This vulnerability affects the security of cryptographic operations in affected versions of Bouncy Castle for Java, potentially enabling key recovery attacks.
Mitigation Recommendations
Upgrade to Bouncy Castle for Java version 1.86 or later, where the timing side-channel has been mitigated by replacing secret-dependent division operations with constant-time implementations. No other mitigation is required as the fix is included in the official release.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- bcorg
- Date Reserved
- 2026-07-28T08:28:40.900Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abf650ba43b0b3b898d59e5
Added to database: 10/02/2026, 08:02:19 UTC
Last enriched: 10/02/2026, 08:16:05 UTC
Last updated: 10/02/2026, 08:39:25 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.