Every CVE Search/ Get API key

CVE-2024-50382

Botan before 3.6.0, when certain LLVM versions are used, has compiler-induced secret-dependent...

5.9 MediumFix available

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

0.55%Up 0.5 points since Oct 24, 2024
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
botan2
Azure Linux:2
through 2.14.0-2 None known
botan2
Azure Linux:3
through 2.14.0-2 None known
botan
Debian:12
before 2.19.3+dfsg-1+deb12u1, plus listed versions
2.19.3+dfsg-1
2.19.3+dfsg-1+deb12u1
botan
Debian:13
before 2.19.5+dfsg-3
2.19.5+dfsg-3
botan2
openEuler:22.03-LTS-SP4
before 2.19.3-4.oe2203sp4
2.19.3-4.oe2203sp4
botan2
openEuler:22.03-LTS-SP3
before 2.19.3-4.oe2203sp3
2.19.3-4.oe2203sp3
botan2
openEuler:24.03-LTS
before 2.19.3-4.oe2403
2.19.3-4.oe2403
botan
Root: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-botan
Root:Alpine:3.19
before 2.19.5-r00071
2.19.5-r000712.19.5-r000722.19.5-r000732.19.5-r000742.19.5-r00075
botan
Root: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
Affected packages
PackageAffectedFixed
rootio-botan
Root:Alpine:3.20
before 2.19.5-r00072
2.19.5-r000722.19.5-r000732.19.5-r000752.19.5-r000742.19.5-r00076
botan
Ubuntu:18.04:LTS
All versions, plus listed versions
2.4.0-32.4.0-42.4.0-5ubuntu1
None known
botan
Ubuntu:20.04:LTS
All versions, plus listed versions
2.9.0-22.9.0-2build12.12.1-22.12.1-2build1
None known
oscar
Ubuntu: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
oscar
Ubuntu:22.04:LTS
All versions, plus listed versions
1.2.0-11.3.0-11.3.1-1
None known
botan
Ubuntu: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
oscar
Ubuntu:24.04:LTS
All versions, plus listed versions
1.4.0-11.5.1-11.5.1-1build11.5.1-1build2
None known
botan
Ubuntu: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
oscar
Ubuntu:25.10
All versions, plus listed versions
1.5.3-2
None known
oscar
Ubuntu:26.10
All versions, plus listed versions
1.5.3-2build11.5.3-4
None known
oscar
Ubuntu:26.04:LTS
All versions, plus listed versions
1.5.3-21.5.3-2build1
None known
botan
Ubuntu: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
botan
Ubuntu: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
Botan
SUSE: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
Botan
SUSE: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
Botan
openSUSE:Leap 15.5
From an advisory covering 2 CVEs
before 2.19.5-bp156.3.6.1
2.19.5-bp156.3.6.1
Botan
openSUSE:Leap 15.6
From an advisory covering 2 CVEs
before 2.19.5-bp156.3.6.1
2.19.5-bp156.3.6.1
Botan
openSUSE:Tumbleweed
before 3.6.0-1.1
3.6.0-1.1

History

History
RecordedChangedSources
affected
factsOSV
aliasesEUVD
first indexedCVE 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

Show 20 moreShow less
MoveEnter Open