Skip to main content
EPSS 0.3%top 72%

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

0
High
VulnerabilityCVE-2024-14041cvecve-2024-14041cwe-208
Published: 07/28/2026 (07/28/2026, 08:05:35 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: BC-JAVA

Description

In Bouncy Castle for Java from 1.73 to before 1.78, three ML-KEM (CRYSTALS-Kyber) routines divided secret-derived polynomial coefficients by the modulus q: Poly.toMsg, which decodes the decrypted message, and the ciphertext compression routines Poly.compressPoly and PolyVec.compressPolyVec. An attacker able to measure the timing of a large number of decapsulations performed with the same long-term private key can recover that key. These are the KyberSlash1 (Poly.toMsg) and KyberSlash2 (ciphertext compression) divisions. Compression performed during encapsulation operates on values that become the public ciphertext and is not affected.

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.78
GitHub Actionsmore threats →cve
bcprov
pkg:github/bcprov
Affected versions
>=1.73 <1.78

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: 08/10/2026, 13:13:02 UTC

Technical Analysis

This vulnerability arises from observable timing discrepancies in three specific routines of the CRYSTALS-Kyber implementation in Bouncy Castle for Java versions 1.73 through before 1.78. The affected routines perform divisions of secret-derived polynomial coefficients by the modulus q, which leak timing information. An attacker capable of measuring the timing of a large number of decapsulations using the same private key can exploit these timing differences to recover the private key. The affected routines are Poly.toMsg (used for decoding decrypted messages) and the ciphertext compression routines Poly.compressPoly and PolyVec.compressPoly. Compression during encapsulation is unaffected as it operates on public ciphertext values. No official fix or patch has been documented yet.

Potential Impact

Successful exploitation allows an attacker to recover the long-term private key used in the affected Kyber cryptographic routines by analyzing timing discrepancies during decapsulation operations. This compromises the confidentiality of communications relying on the affected Bouncy Castle Java implementation of CRYSTALS-Kyber. The vulnerability does not affect the encapsulation compression process and requires the attacker to measure timing over many decapsulations with the same key.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should consider limiting exposure of the affected decapsulation operations to untrusted parties or applying additional mitigations to reduce timing side-channel leakage if possible. Monitor vendor communications for updates on patches or official mitigations.

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-28T05:07:53.475Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a6866d29c2644c7f84b2154

Added to database: 07/28/2026, 08:22:42 UTC

Last enriched: 08/10/2026, 13:13:02 UTC

Last updated: 09/10/2026, 20:01:37 UTC

Views: 103

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