CVE-2024-50382
Botan before 3.6.0, when certain LLVM versions are used, has compiler-induced secret-dependent...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
5.9
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.
- Record
CVE-2024-50382- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-203
- Updated
- 2026-11-02
EUVDEUVD-2024-44835
5.9
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.
- Record
EUVD-2024-44835- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-p27h-83pf-6hh9
5.9
Botan before 3.6.0, when certain LLVM versions are used, has compiler-induced secret-dependent...
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.
- Record
GHSA-p27h-83pf-6hh9- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-203
- Updated
- 2026-11-02
NVD
5.9
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.
- Record
CVE-2024-50382- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-203
- Updated
- 2026-11-02
OSV
5.9
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.
- Record
CVE-2024-50382- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-50382
5.9
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.
- Record
DEBIAN-CVE-2024-50382- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Show 11 moreShow less
OSVOESA-2024-2328
5.9
botan2 security update
Botan is a BSD-licensed crypto library written in C++. It provides a wide variety of basic cryptographic algorithms, X.509 certificates and CRLs, PKCS #10 certificate requests, a filter/pipe message processing system, and a wide variety of other features, all written in portable C++. The API reference, tutorial, and examples may help impart the flavor of the library. This is the current stable release branch 2.x of Botan.
Security Fix(es):
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.(CVE-2024-50382)
- Record
OESA-2024-2328- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVOESA-2024-2329
5.9
botan2 security update
Botan is a BSD-licensed crypto library written in C++. It provides a wide variety of basic cryptographic algorithms, X.509 certificates and CRLs, PKCS #10 certificate requests, a filter/pipe message processing system, and a wide variety of other features, all written in portable C++. The API reference, tutorial, and examples may help impart the flavor of the library. This is the current stable release branch 2.x of Botan.
Security Fix(es):
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.(CVE-2024-50382)
- Record
OESA-2024-2329- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVOESA-2024-2330
5.9
botan2 security update
Botan is a BSD-licensed crypto library written in C++. It provides a wide variety of basic cryptographic algorithms, X.509 certificates and CRLs, PKCS #10 certificate requests, a filter/pipe message processing system, and a wide variety of other features, all written in portable C++. The API reference, tutorial, and examples may help impart the flavor of the library. This is the current stable release branch 2.x of Botan.
Security Fix(es):
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.(CVE-2024-50382)
- Record
OESA-2024-2330- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-50382
5.9
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.
- Record
UBUNTU-CVE-2024-50382- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVAZL-51678 No score
CVE-2024-50382 affecting package botan2 2.14.0-2
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.
- Record
AZL-51678- Updated
- 2026-11-02
OSVAZL-51707 No score
CVE-2024-50382 affecting package botan2 2.14.0-2
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.
- Record
AZL-51707- Updated
- 2026-11-05
OSVopenSUSE-SU-2024:0343-1 No score
Security update for Botan
This update for Botan fixes the following issues:
- Fixed CVE-2024-50382, CVE-2024-50383 - various compiler-induced side channel in GHASH when certain LLVM/GCC versions are used to compile Botan.
- Record
openSUSE-SU-2024:0343-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14429-1 No score
Botan-3.6.0-1.1 on GA media
These are all security issues fixed in the Botan-3.6.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14429-1- Updated
- 2026-11-02
OSVROOT-OS-ALPINE-319-CVE-2024-50382 No score
CVE-2024-50382 in botan - Patched by Root
Root has patched CVE-2024-50382 in the botan package for Root:Alpine:3.19. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-319-CVE-2024-50382- Updated
- 2026-11-02
OSVROOT-OS-ALPINE-320-CVE-2024-50382 No score
CVE-2024-50382 in botan - Patched by Root
Root has patched CVE-2024-50382 in the botan package for Root:Alpine:3.20. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-320-CVE-2024-50382- Updated
- 2026-11-02
OSVUSN-7586-1 No score
botan vulnerabilities
It was discovered that Botan could have compiler dependent operations induced under certain circumstances. An attacker could possibly use this issue to cause undefined behavior. (CVE-2024-50382, CVE-2024-50383)
Bing Shi discovered that Botan did not limit the size of certain inputs when checking primality and name constraints. An attacker could possibly use this issue to cause a denial of service. (CVE-2024-34702, CVE-2024-34703)
It was discovered that Botan did not correctly handle conflicting name constraints. An attacker could possibly use this issue to bypass authentication. (CVE-2024-39312)
- Record
USN-7586-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
botan2Azure Linux:2 |
through 2.14.0-2 | None known |
botan2Azure Linux:3 |
through 2.14.0-2 | None known |
botanDebian:12 |
before 2.19.3+dfsg-1+deb12u1, plus listed versions 2.19.3+dfsg-1 |
2.19.3+dfsg-1+deb12u1 |
botanDebian:13 |
before 2.19.5+dfsg-3 | 2.19.5+dfsg-3 |
botan2openEuler:22.03-LTS-SP4 |
before 2.19.3-4.oe2203sp4 | 2.19.3-4.oe2203sp4 |
botan2openEuler:22.03-LTS-SP3 |
before 2.19.3-4.oe2203sp3 | 2.19.3-4.oe2203sp3 |
botan2openEuler:24.03-LTS |
before 2.19.3-4.oe2403 | 2.19.3-4.oe2403 |
botanRoot:Alpine:3.19 |
before 2.19.5-r00071 | 2.19.5-r000712.19.5-r000722.19.5-r000732.19.5-r000742.19.5-r00075 |
rootio-botanRoot:Alpine:3.19 |
before 2.19.5-r00071 | 2.19.5-r000712.19.5-r000722.19.5-r000732.19.5-r000742.19.5-r00075 |
botanRoot:Alpine:3.20 |
before 2.19.5-r00072 | 2.19.5-r000722.19.5-r000732.19.5-r000752.19.5-r000742.19.5-r00076 |
Show 18 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rootio-botanRoot:Alpine:3.20 |
before 2.19.5-r00072 | 2.19.5-r000722.19.5-r000732.19.5-r000752.19.5-r000742.19.5-r00076 |
botanUbuntu:18.04:LTS |
All versions, plus listed versions 2.4.0-32.4.0-42.4.0-5ubuntu1 |
None known |
botanUbuntu:20.04:LTS |
All versions, plus listed versions 2.9.0-22.9.0-2build12.12.1-22.12.1-2build1 |
None known |
oscarUbuntu:20.04:LTS |
All versions, plus listed versions 1.1.0-testing-3-11.1.0-testing-3-21.1.0-testing-3-31.1.0-testing-3-3build1 |
None known |
oscarUbuntu:22.04:LTS |
All versions, plus listed versions 1.2.0-11.3.0-11.3.1-1 |
None known |
botanUbuntu:Pro:22.04:LTS |
before 2.19.1+dfsg-2ubuntu1+esm1, plus listed versions 2.17.3+dfsg-32.19.1+dfsg-2ubuntu1 |
2.19.1+dfsg-2ubuntu1+esm1 |
oscarUbuntu:24.04:LTS |
All versions, plus listed versions 1.4.0-11.5.1-11.5.1-1build11.5.1-1build2 |
None known |
botanUbuntu:Pro:24.04:LTS |
before 2.19.3+dfsg-1ubuntu2+esm1, plus listed versions 2.19.3+dfsg-1ubuntu12.19.3+dfsg-1ubuntu2 |
2.19.3+dfsg-1ubuntu2+esm1 |
oscarUbuntu:25.10 |
All versions, plus listed versions 1.5.3-2 |
None known |
oscarUbuntu:26.10 |
All versions, plus listed versions 1.5.3-2build11.5.3-4 |
None known |
oscarUbuntu:26.04:LTS |
All versions, plus listed versions 1.5.3-21.5.3-2build1 |
None known |
botanUbuntu:Pro:22.04:LTS From an advisory covering 5 CVEs |
before 2.19.1+dfsg-2ubuntu1+esm1, plus listed versions 2.17.3+dfsg-32.19.1+dfsg-2ubuntu1 |
2.19.1+dfsg-2ubuntu1+esm1 |
botanUbuntu:Pro:24.04:LTS From an advisory covering 5 CVEs |
before 2.19.3+dfsg-1ubuntu2+esm1, plus listed versions 2.19.3+dfsg-1ubuntu12.19.3+dfsg-1ubuntu2 |
2.19.3+dfsg-1ubuntu2+esm1 |
BotanSUSE:Package Hub 15 SP5 From an advisory covering 2 CVEs |
before 2.19.5-bp156.3.6.1 | 2.19.5-bp156.3.6.1 |
BotanSUSE:Package Hub 15 SP6 From an advisory covering 2 CVEs |
before 2.19.5-bp156.3.6.1 | 2.19.5-bp156.3.6.1 |
BotanopenSUSE:Leap 15.5 From an advisory covering 2 CVEs |
before 2.19.5-bp156.3.6.1 | 2.19.5-bp156.3.6.1 |
BotanopenSUSE:Leap 15.6 From an advisory covering 2 CVEs |
before 2.19.5-bp156.3.6.1 | 2.19.5-bp156.3.6.1 |
BotanopenSUSE:Tumbleweed |
before 3.6.0-1.1 | 3.6.0-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-50382 is a medium vulnerability (CVSS 5.9) in Botan Project Botan, published October 23, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.55%, the 46th percentile. Fixed in botan 2.19.3+dfsg-1+deb12u1.
References
github.com/randombit/botan/commit/53b0cfde580e86b03d0d27a488b6c134f662e957
github.com/randombit/botan/compare/3.5.0...3.6.0
arxiv.org/pdf/2410.13489
news.ycombinator.com/item?id=41887153
nvd.nist.gov/vuln/detail/CVE-2024-50382
github.com/advisories/GHSA-p27h-83pf-6hh9
Show 20 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50382.json
security-tracker.debian.org/tracker/CVE-2024-50382
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-2328
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-2329
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-2330
ubuntu.com/security/CVE-2024-50382
cve.org/CVERecord?id=CVE-2024-50382
ubuntu.com/security/notices/USN-7586-1
ubuntu.com/security/CVE-2024-34702
ubuntu.com/security/CVE-2024-34703
ubuntu.com/security/CVE-2024-39312
ubuntu.com/security/CVE-2024-50383
lists.opensuse.org/archives/list/[email protected]/thread/JIB3PGKG47QR6R5PTCZJFDYCEELC6BOJ
bugzilla.suse.com/1232296
bugzilla.suse.com/1232297
bugzilla.suse.com/1232300
bugzilla.suse.com/1232301
suse.com/security/cve/CVE-2024-50382
suse.com/security/cve/CVE-2024-50383
lists.opensuse.org/archives/list/[email protected]/thread/UY4RL4FBV22PQSJS56OEWPJTGWTDJO2U