{"id":"CVE-2024-36405","summary":"Control-flow timing leak in Kyber reference implementation when compiled with Clang 15-18 for -Os, -O1 and other options","details":"liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. A control-flow timing lean has been identified in the reference implementation of the Kyber key encapsulation mechanism when it is compiled with Clang 15-18 for `-Os`, `-O1`, and other compilation options. A proof-of-concept local attack on the reference implementation leaks the entire ML-KEM 512 secret key in ~10 minutes using end-to-end decapsulation timing measurements. The issue has been fixed in version 0.10.1. As a possible workaround, some compiler options may produce vectorized code that does not leak secret information, however relying on these compiler options as a workaround may not be reliable.","aliases":["GHSA-f2v9-5498-2vpp"],"modified":"2026-04-10T05:15:27.619347Z","published":"2024-06-10T12:47:17.934Z","related":["SUSE-SU-2025:0005-1","openSUSE-SU-2024:14039-1"],"database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36405.json","cwe_ids":["CWE-208","CWE-385"]},"references":[{"type":"WEB","url":"https://github.com/open-quantum-safe/liboqs/blob/7eecda6095c003ddded7175a1ffdf35a2ce63ed5/src/kem/kyber/pqcrystals-kyber_kyber512_ref/poly.c#L166"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36405.json"},{"type":"ADVISORY","url":"https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-f2v9-5498-2vpp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36405"},{"type":"FIX","url":"https://github.com/open-quantum-safe/liboqs/commit/982c762c242ef549c914891b47bf6e0ed6321f91"},{"type":"FIX","url":"https://github.com/pq-crystals/kyber/commit/9b8d30698a3e7449aeb34e62339d4176f11e3c6c"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/open-quantum-safe/liboqs","events":[{"introduced":"0"},{"fixed":"5dd87dcaafa6f90e983ef464f9f6a75f9485fb26"}]}],"versions":["0.10.0","0.10.1-rc1","0.2.0","0.3.0","0.4.0","0.5.0","0.6.0","0.6.0-rc1","0.6.0-rc2","0.6.0-rc3","0.7.0","0.7.0-rc3","0.7.0-rc4","0.7.1","0.7.1-rc1","0.7.2","0.7.2-rc1","0.7.2-rc2","0.8.0","0.8.0-rc1","0.9.0","0.9.0-rc1","ietf116","master-0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36405.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/pq-crystals/kyber","events":[{"introduced":"0"},{"fixed":"9b8d30698a3e7449aeb34e62339d4176f11e3c6c"}]}],"versions":["v3.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36405.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}