CVE-2024-14041: CWE-208 Observable Timing Discrepancy in Legion of the Bouncy Castle Inc. BC-JAVA
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.
AI Analysis
Technical Summary
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.
CVE-2024-14041: CWE-208 Observable Timing Discrepancy in Legion of the Bouncy Castle Inc. 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
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
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.
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 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.