CVE-2024-14041 Details
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.
A vulnerability exists in Bouncy Castle for Java versions 1.73 prior to 1.78, within the ML-KEM (CRYSTALS-Kyber) implementation. The issue arises because certain routines improperly handle secret-derived polynomial coefficients by dividing them with the modulus q. This flaw is present in the message decoding routine (Poly.toMsg) and the ciphertext compression routines (Poly.compressPoly and PolyVec.compressPolyVec). An attacker who can measure the timing of multiple decapsulation operations using the same long-term private key may exploit this vulnerability to recover the private key.
Users can upgrade to Bouncy Castle for Java version 1.78 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/bcgit/bc-java/commit/1590247178f2280defa36421475f015175dfbe9e | bcorg | Patch |
| https://github.com/bcgit/bc-java/commit/5adb2c5c5b462a332b01a012bea0784b40b904e5 | bcorg | Patch |
| https://github.com/bcgit/bc-java/wiki/CVE-2024-14041 | bcorg | Vendor Advisory |
| https://kyberslash.cr.yp.to/ | bcorg | Exploit |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-208 | Observable Timing Discrepancy | bcorg |
Affected Products
| Product | Versions |
|---|---|
| bouncycastle bc-java | >= 1.73, < 1.78 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 2, 2026 | CVE Translated | [email protected] |
| Aug 26, 2026 | Initial Analysis | [email protected] |
| Jul 28, 2026 | CVE Modified | CISA-ADP |
| Jul 28, 2026 | New CVE Received | bcorg |