{"id":"CVE-2024-14041","state":"PUBLISHED","title":"ML-KEM (Kyber) decapsulation leaks private key information through non-constant-time division in message decoding and ciphertext compression (KyberSlash)","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.","publishedAt":"2026-07-28T08:05:35.310Z","updatedAt":"2026-08-09T20:56:37.119Z","severity":{"score":8.2,"label":"High","version":"4.0","vector":"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","source":"bcorg"},"assigner":"bcorg","products":["Legion of the Bouncy Castle Inc. BC-JAVA"],"affected":[{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC-JAVA","packageName":"bcprov","packageURL":"pkg:maven/org.bouncycastle/bcprov-jdk18on","defaultStatus":"unaffected","versions":[{"version":"1.73","status":"affected","lessThan":"1.78","versionType":"maven"}],"platforms":["all"],"collectionURL":"https://www.bouncycastle.org/download/bouncy-castle-java/","repo":"https://github.com/bcgit/bc-java","modules":["core"],"programFiles":["Poly","PolyVec"]}],"references":["https://github.com/bcgit/bc-java/wiki/CVE-2024-14041","https://github.com/bcgit/bc-java/commit/5adb2c5c5b462a332b01a012bea0784b40b904e5","https://github.com/bcgit/bc-java/commit/1590247178f2280defa36421475f015175dfbe9e","https://kyberslash.cr.yp.to/"],"weaknesses":["CWE-208"],"ingestedAt":"2026-10-29T20:06:50.777Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/14xxx/CVE-2024-14041.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-14041","state":"PUBLISHED","datePublished":"2026-07-28T08:05:35.310Z","dateUpdated":"2026-08-09T20:56:37.119Z","assignerShortName":"bcorg","assignerOrgId":"91579145-5d7b-4cc5-b925-a0262ff19630","dateReserved":"2026-07-28T05:07:53.475Z"},"containers":{"cna":{"title":"ML-KEM (Kyber) decapsulation leaks private key information through non-constant-time division in message decoding and ciphertext compression (KyberSlash)","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC-JAVA","packageName":"bcprov","packageURL":"pkg:maven/org.bouncycastle/bcprov-jdk18on","defaultStatus":"unaffected","versions":[{"version":"1.73","status":"affected","lessThan":"1.78","versionType":"maven"}],"platforms":["all"],"collectionURL":"https://www.bouncycastle.org/download/bouncy-castle-java/","repo":"https://github.com/bcgit/bc-java","modules":["core"],"programFiles":["Poly","PolyVec"]}],"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE-2024-14041","tags":["vendor-advisory"]},{"url":"https://github.com/bcgit/bc-java/commit/5adb2c5c5b462a332b01a012bea0784b40b904e5","tags":["patch"]},{"url":"https://github.com/bcgit/bc-java/commit/1590247178f2280defa36421475f015175dfbe9e","tags":["patch"]},{"url":"https://kyberslash.cr.yp.to/","tags":["technical-description"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"AMBER","version":"4.0","baseSeverity":"HIGH","baseScore":8.2,"vectorString":"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-208","lang":"en","description":"CWE-208 Observable Timing Discrepancy","type":"CWE"}]}],"providerMetadata":{"shortName":"bcorg","orgId":"91579145-5d7b-4cc5-b925-a0262ff19630","dateUpdated":"2026-08-09T20:56:37.119Z"},"credits":[{"lang":"en","value":"The Robusta team: Deepak Bhargavan Pillai, Anirban Chakraborty, Chitchanok Chuengsatiansup, Matthew Roughan, Peter Schwabe, and Yuval Yarom","type":"finder"},{"lang":"en","value":"The KyberSlash authors: Daniel J. Bernstein, Karthikeyan Bhargavan, Shivam Bhasin, Anupam Chattopadhyay, Tee Kiah Chia, Matthias J. Kannwischer, Franziskus Kiefer, Thales Paiva, Prasanna Ravi and Goutam Tamvada.","type":"finder"}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"bc release-notes template"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-28T12:54:52.417865Z","id":"CVE-2024-14041","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-28T12:55:43.574Z"}}]}}}