{"id":"CVE-2024-50382","details":"Botan before 3.6.0, when certain LLVM versions are used, has compiler-induced secret-dependent control flow in lib/utils/ghash/ghash.cpp in GHASH in AES-GCM. There is a branch instead of an XOR with carry. This was observed for Clang in LLVM 15 on RISC-V.","modified":"2026-04-12T10:16:09.279956Z","published":"2024-10-23T17:15:19.453Z","related":["openSUSE-SU-2024:0343-1","openSUSE-SU-2024:14429-1"],"references":[{"type":"WEB","url":"https://github.com/randombit/botan/compare/3.5.0...3.6.0"},{"type":"REPORT","url":"https://news.ycombinator.com/item?id=41887153"},{"type":"FIX","url":"https://github.com/randombit/botan/commit/53b0cfde580e86b03d0d27a488b6c134f662e957"},{"type":"EVIDENCE","url":"https://arxiv.org/pdf/2410.13489"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/randombit/botan","events":[{"introduced":"0"},{"fixed":"76a8996c624624f5bb68fe224554cb58ad860371"},{"fixed":"53b0cfde580e86b03d0d27a488b6c134f662e957"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"3.6.0"}]}}],"versions":["1.10.0","1.10.0-rc1","1.10.1","1.11.0","1.11.10","1.11.11","1.11.12","1.11.13","1.11.14","1.11.15","1.11.16","1.11.17","1.11.18","1.11.19","1.11.2","1.11.20","1.11.21","1.11.22","1.11.23","1.11.24","1.11.25","1.11.26","1.11.27","1.11.28","1.11.29","1.11.3","1.11.30","1.11.31","1.11.32","1.11.33","1.11.34","1.11.5","1.11.6","1.11.7","1.11.8","1.11.9","1.5.10","1.5.11","1.5.12","1.5.13","1.5.6","1.5.7","1.5.8","1.5.9","1.6.0","1.6.1","1.7.0","1.7.1","1.7.10","1.7.11","1.7.15","1.7.16","1.7.17","1.7.18","1.7.19","1.7.20","1.7.21","1.7.22","1.7.23","1.7.24","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.7.8","1.7.9","1.8.2","1.8.3","1.8.4","1.8.5","1.8.6","1.8.7","1.8.8","1.9.10","1.9.11","1.9.12","1.9.13","1.9.14","1.9.15","1.9.16","1.9.17","1.9.18","1.9.3","1.9.4","1.9.5","1.9.6","1.9.7","1.9.8","1.9.9","2.0.0","2.0.1","2.1.0","2.10.0","2.11.0","2.12.0","2.12.1","2.13.0","2.14.0","2.15.0","2.16.0","2.17.0","2.2.0","2.3.0","2.4.0","2.5.0","2.6.0","2.7.0","2.8.0","2.9.0","3.0.0","3.0.0-alpha0","3.0.0-alpha1","3.0.0-rc1","3.1.0","3.1.1","3.2.0","3.3.0","3.4.0","3.5.0"],"database_specific":{"vanir_signatures":[{"target":{"file":"src/lib/utils/donna128.h"},"id":"CVE-2024-50382-26cdcaea","signature_type":"Line","source":"https://github.com/randombit/botan/commit/53b0cfde580e86b03d0d27a488b6c134f662e957","signature_version":"v1","deprecated":false,"digest":{"threshold":0.9,"line_hashes":["126919531198109600670305180861805806198","47027288753694363130089521202152577733","263451663412783185999844650754253064521","317664375744814807110685203567803694964","192798379601031292957747122793573782265","152746210731360794603556943365478611757","246680631869523581155615701478946827435","234213935555240666678775579274190960278","153068232029709647583119557210309603557","103595958058659321366621553752559120036","16983010423492160011678054637918267363"]}},{"target":{"function":"operator+=","file":"src/lib/utils/donna128.h"},"id":"CVE-2024-50382-59086b84","signature_type":"Function","source":"https://github.com/randombit/botan/commit/53b0cfde580e86b03d0d27a488b6c134f662e957","signature_version":"v1","deprecated":false,"digest":{"function_hash":"113240240772205969688468516196387758560","length":113}},{"target":{"function":"GHASH::key_schedule","file":"src/lib/utils/ghash/ghash.cpp"},"id":"CVE-2024-50382-74e973ae","signature_type":"Function","source":"https://github.com/randombit/botan/commit/53b0cfde580e86b03d0d27a488b6c134f662e957","signature_version":"v1","deprecated":false,"digest":{"function_hash":"263419540320011672964078588133153699739","length":782}},{"target":{"file":"src/lib/utils/ghash/ghash.cpp"},"id":"CVE-2024-50382-9e6e9f58","signature_type":"Line","source":"https://github.com/randombit/botan/commit/53b0cfde580e86b03d0d27a488b6c134f662e957","signature_version":"v1","deprecated":false,"digest":{"threshold":0.9,"line_hashes":["149196067096857216389568200283793391311","259405174184722127687927409568629724662","133516367246839249334925645775850140497","117102124029184724036706851708733937691"]}},{"target":{"function":"operator+=","file":"src/lib/utils/donna128.h"},"id":"CVE-2024-50382-d75ed31a","signature_type":"Function","source":"https://github.com/randombit/botan/commit/53b0cfde580e86b03d0d27a488b6c134f662e957","signature_version":"v1","deprecated":false,"digest":{"function_hash":"81898273412369779755549984092706126000","length":146}}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50382.json","vanir_signatures_modified":"2026-04-12T10:16:09Z"}}],"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"}]}