Skip to main content

CVE-2026-18036: CWE-208 Observable Timing Discrepancy in Legion of the Bouncy Castle Inc. BC-JAVA

0
High
VulnerabilityCVE-2026-18036cvecve-2026-18036cwe-208
Published: 10/02/2026 (10/02/2026, 07:54:16 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: 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

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/U:Amber

Affected software

Legion of the Bouncy Castle Inc.

BC-JAVA

Affected versions
>=1.73 <1.86
GitHub Actionsmore threats →cve
bcprov
pkg:github/bcprov
Affected versions
>=1.73 <1.86

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/02/2026, 08:16:05 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses