Skip to main content

Bouncy Castle CVE-2026-18036

| EUVDEUVD-2026-91317 HIGH
Observable Timing Discrepancy (CWE-208)
2026-10-02 bcorg GHSA-frjj-v5w4-68pc
8.2
CVSS 4.0 · Vendor: bcorg
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify service using BC NTRU KEM
  2. Delivery
    Submit repeated encapsulation/decapsulation requests
  3. Exploit
    Measure secret-dependent division latency
  4. Execution
    Statistically correlate timing with key coefficients
  5. Impact
    Recover NTRU private key information

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V6 - Authentication Timing attack prevention
Exploitation Conditions

Exploitation requires that the target application actually uses Bouncy Castle's NTRU KEM operations (key generation, encapsulation, or decapsulation) from a version before 1.86 with a persistent/reused private key, AND that the attacker can repeatedly invoke those operations while measuring their execution time with enough precision to resolve secret-dependent integer-division latency. Limiting factors are significant: NTRU post-quantum crypto is not enabled by default in most deployments and is rarely used, the attack (per CVSS AC:H/AT:P) needs a large volume of low-jitter timing samples to extract key information, and remote network timing noise makes co-located or low-latency measurement access effectively necessary. Impact is confidentiality-only (private-key information leakage); there is no integrity or availability effect.

Impact

This is a cryptographic timing side-channel (CWE-208) in the NTRU post-quantum KEM of Bouncy Castle for Java before 1.86, where three reduction helpers (Polynomial.modQ, Polynomial.mod3, NTRUSampling.mod3) used the '%' operator, compiling to integer divisions whose latency depends on secret operands (private-key polynomials f/g, message polynomials r/m, and coefficients recovered during decapsulation). The provided CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N, VC:H only) scores 8.2 but encodes the real difficulty: AC:H and AT:P signal that exploitation requires specific, hard-to-meet conditions and repeated high-precision timing measurement, not a trivial remote call. No EPSS score, KEV listing, or POC was provided, so there are no 'active exploitation' signals to corroborate the high base score - this is characteristic of a theoretically serious but operationally demanding cryptographic flaw rather than a mass-exploited vulnerability. In practice this is a lower real-world priority than the 8.2 suggests: it only matters where NTRU is actually deployed, demands many clean timing samples to recover key information, and has no integrity or availability impact. Note the AV:N classification is generous for a timing attack - remote network timing is extremely noisy, so realistic exploitation likely requires co-located or low-jitter measurement access; verify the practical attack vector against the vendor advisory. Confidentiality-only impact (private-key information disclosure) is the sole consequence.

Exploit ScenarioDerived

An application uses Bouncy Castle's NTRU KEM (before 1.86) to perform decapsulation with a long-lived private key, and an attacker who can trigger many decapsulation operations measures the time each takes. Because the secret-dependent modular reductions divide rather than mask, the attacker statistically correlates execution-time variations with private-key polynomial coefficients and gradually recovers key information. No public exploit code was identified at time of analysis, and the attack requires large volumes of low-noise timing samples (reflected in CVSS AC:H / AT:P).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 02, 2026

Timing side-channel leakage in Bouncy Castle for Java (bc-java) versions before 1.86 exposes private-key information from NTRU post-quantum KEM operations because three modular-reduction helpers used the '%' operator, which compiles to an integer division whose latency depends on the secret operand. Affected call paths include key generation (secret polynomials f and g), encapsulation (message polynomials r and m), and decapsulation (coefficients recovered from the private key), and the CVSS 4.0 base score is 8.2 (assessed as CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - confidentiality only). Exploitation requires the application to actually invoke NTRU KEM operations with a persistent/reused key and an attacker able to repeatedly measure operation timing with low jitter, so practical risk is limited to deployments that use NTRU and expose those operations to a co-located or low-latency timing observer; no public exploit code has been identified at time of analysis and the flaw is not confirmed actively exploited (no CISA KEV listing), but a vendor patch is available and should be applied.

RemediationAI

Vendor-released patch: upgrade Bouncy Castle for Java to version 1.86 or later, which replaces the three timing-variable '%' reductions with the division-free masked/fold-and-select implementations (Polynomial.modQ now masks with q - 1, and Polynomial.mod3 plus NTRUSampling.mod3 use the reference fold-and-select); see the advisory https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9018036 and the fix commit https://github.com/bcgit/bc-java/commit/9c9ad88b6003bb6230d2434bd892cc1e95b294e4. Because the leaked material is private-key information, patching the library is not by itself sufficient - any NTRU key pair generated, encapsulated to, or decapsulated with a pre-1.86 build on an exposed path should be treated as potentially compromised and rotated after upgrading. If an upgrade cannot be performed immediately, the most effective compensating control is to stop using the NTRU KEM entirely (disable NTRU parameter sets and fail over to a different PQC or classical algorithm), accepting the loss of any NTRU-based post-quantum assurance; alternatively, remove NTRU key generation, encapsulation and decapsulation from any path reachable by untrusted or co-located callers, enforce strict request-rate limiting and coarse-grained timing jitter on any service that does expose them, and avoid long-lived reuse of a single NTRU private key. Note that rate limiting and network jitter only raise the sample count an attacker needs and are not cryptographically sound mitigations, and that these controls do not repair keys already exposed.

Affected VersionsENISA

BC-JAVA 1.73 <1.86

Affected Packages

euvd bc_java fix: 1.86

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

NTRU is a lattice-based, post-quantum key-encapsulation mechanism implemented in Bouncy Castle for Java under org.bouncycastle.pqc.math.ntru and org.bouncycastle.pqc.crypto.ntru. Its arithmetic revolves around ternary polynomials reduced modulo 3 and polynomial coefficients reduced modulo q, where q is always a power of two (NTRUParameterSet.q() returns 1 << logQ, with logQ values 11-14 across the NTRUHPS2048509/677, NTRUHPS4096821/1229, NTRUHRSS701 and NTRUHRSS1373 parameter sets). The root cause is CWE-208 (Observable Timing Discrepancy): Java's '%' operator lowers to an integer division instruction whose execution latency varies with the operand values, and the reference NTRU implementation deliberately avoids division in exactly these helpers. Polynomial.modQ divided by a variable divisor q - which the JIT cannot strength-reduce to a multiply the way it can for a constant - and was invoked on the decapsulation path where the dividend derives from the private key; Polynomial.mod3 and NTRUSampling.mod3 divided the secret key polynomials f and g during key generation, the message polynomials r and m during encapsulation, and coefficients recovered during decapsulation. The fix removes all three divisions without changing results: modQ became a bitwise mask x & (q - 1), which is exactly x % q because q is a power of two and all call sites pass 16-bit-masked values; mod3 was replaced with the reference implementation's division-free fold-and-select (folding by 255, then 15, then 3 preserves the residue mod 3 and leaves a value of at most 5, which one masked conditional subtraction reduces to 0..2), and NTRUSampling.mod3 reuses that same mod3. Regression tests (PolynomialModTest, AllTests) were added to pin the new helpers to the values '%' produced across the entire input domain.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (bcorg) PRIMARY 8.2 HIGH
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
vuln.today AI 5.9 MEDIUM

Unauthenticated (PR:N) since timing is observed without credentials, but AC:H because key recovery needs many low-noise timing samples; confidentiality-only (key leak), no I/A impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (bcorg).

CVSS VectorVendor: bcorg

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

In Bouncy Castle for Java before 1.86, NTRU reduced secret values with the % operator in three helpers whose reference implementations are deliberately division-free, so each reduction was carried out by an integer division whose latency depends on the secret operand. Polynomial.modQ divided by a variable divisor, which a compiler cannot strength-reduce to a multiply the way it can a constant one, so it emitted a division on every call including on the decapsulation path where the dividend derives from the private key; Polynomial.mod3 and NTRUSampling.mod3 divided the secret key polynomials f and g during key generation, the message polynomials r and m during encapsulation, and coefficients recovered during decapsulation. An attacker able to measure that timing can recover information about the NTRU private key. modQ now masks, which is exact because q is always a power of two, and mod3 uses the reference implementation's division-free fold and select; the results are unchanged.

Executive ViewAI

Why It Matters

Bouncy Castle for Java (bc-java) before 1.86 contains a timing side-channel in NTRU post-quantum KEM operations that could expose private-key material, but only for deployments that actively use NTRU KEM with reused keys and are exposed to a co-located or low-latency timing observer. Because no public exploit identified at time of analysis and Vendor-released patch: 1.86 is available, the immediate enterprise risk is concentrated in a narrow set of Java applications handling post-quantum cryptography; leadership should ensure those systems are identified and upgraded to protect long-term key confidentiality.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
High
Bouncy Castle is a ubiquitous Java crypto library, but NTRU PQC usage is niche
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy