# CVE-2024-50382: 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…

- Severity: Medium 5.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-23T00:00:00.000Z
- Modified: 2026-06-17T08:04:20.990Z
- Weaknesses: CWE-203
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- botan_project botan: before 3.6.0

## References

- <https://arxiv.org/pdf/2410.13489> (exploit, technical-description, third-party-advisory)
- <https://github.com/randombit/botan/commit/53b0cfde580e86b03d0d27a488b6c134f662e957> (patch)
- <https://github.com/randombit/botan/compare/3.5.0...3.6.0> (product)
- <https://news.ycombinator.com/item?id=41887153> (issue-tracking)

## Sources

- CVE List: [CVE-2024-50382](https://www.cve.org/CVERecord?id=CVE-2024-50382), CVE Terms of Use, modified 2024-10-24
- NVD: [CVE-2024-50382](https://nvd.nist.gov/vuln/detail/CVE-2024-50382), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50382 · Whole record: https://cve.day/CVE-2024-50382.json · Rebuilt by cve.day 2026-11-25T22:58:47.200Z
