CVE-2024-50383
Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent...
Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna128 (used in Chacha-Poly1305 and x25519). An addition can be skipped if a carry is not set. This was observed for GCC 11.3.0 with -O2 on MIPS, and GCC on x86-i386. (Only 32-bit processors can be affected.)
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 GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna128 (used in Chacha-Poly1305 and x25519). An addition can be skipped if a carry is not set. This was observed for GCC 11.3.0 with -O2 on MIPS, and GCC on x86-i386. (Only 32-bit processors can be affected.)
- Record
CVE-2024-50383- 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-44836
5.9
Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna128 (used in Chacha-Poly1305 and x25519). An addition can be skipped if a carry is not set. This was observed for GCC 11.3.0 with -O2 on MIPS, and GCC on x86-i386. (Only 32-bit processors can be affected.)
- Record
EUVD-2024-44836- 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-m6p4-vhgw-8c9c
5.9
Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent...
Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna128 (used in Chacha-Poly1305 and x25519). An addition can be skipped if a carry is not set. This was observed for GCC 11.3.0 with -O2 on MIPS, and GCC on x86-i386. (Only 32-bit processors can be affected.)
- Record
GHSA-m6p4-vhgw-8c9c- 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 GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna128 (used in Chacha-Poly1305 and x25519). An addition can be skipped if a carry is not set. This was observed for GCC 11.3.0 with -O2 on MIPS, and GCC on x86-i386. (Only 32-bit processors can be affected.)
- Record
CVE-2024-50383- 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 GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna128 (used in Chacha-Poly1305 and x25519). An addition can be skipped if a carry is not set. This was observed for GCC 11.3.0 with -O2 on MIPS, and GCC on x86-i386. (Only 32-bit processors can be affected.)
- Record
CVE-2024-50383- 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-50383
5.9
Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna128 (used in Chacha-Poly1305 and x25519). An addition can be skipped if a carry is not set. This was observed for GCC 11.3.0 with -O2 on MIPS, and GCC on x86-i386. (Only 32-bit processors can be affected.)
- Record
DEBIAN-CVE-2024-50383- 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 7 moreShow less
OSVUBUNTU-CVE-2024-50383
5.9
Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna128 (used in Chacha-Poly1305 and x25519). An addition can be skipped if a carry is not set. This was observed for GCC 11.3.0 with -O2 on MIPS, and GCC on x86-i386. (Only 32-bit processors can be affected.)
- Record
UBUNTU-CVE-2024-50383- 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-51681 No score
CVE-2024-50383 affecting package botan2 2.14.0-2
Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna128 (used in Chacha-Poly1305 and x25519). An addition can be skipped if a carry is not set. This was observed for GCC 11.3.0 with -O2 on MIPS, and GCC on x86-i386. (Only 32-bit processors can be affected.)
- Record
AZL-51681- Updated
- 2026-11-02
OSVAZL-51701 No score
CVE-2024-50383 affecting package botan2 2.14.0-2
Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna128 (used in Chacha-Poly1305 and x25519). An addition can be skipped if a carry is not set. This was observed for GCC 11.3.0 with -O2 on MIPS, and GCC on x86-i386. (Only 32-bit processors can be affected.)
- Record
AZL-51701- Updated
- 2026-11-05
OSVMGASA-2025-0295 No score
Updated botan2 packages fix security vulnerability
Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna128 (used in Chacha-Poly1305 and x25519). An addition can be skipped if a carry is not set. This was observed for GCC 11.3.0 with -O2 on MIPS, and GCC on x86-i386 (only 32-bit processors can be affected). (CVE-2024-50383)
- Record
MGASA-2025-0295- Updated
- 2026-11-02
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
OSVROOT-OS-ALPINE-320-CVE-2024-50383 No score
CVE-2024-50383 in botan - Patched by Root
Root has patched CVE-2024-50383 in the botan package for Root:Alpine:3.20. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-320-CVE-2024-50383- 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 |
botan2Mageia:9 |
before 2.19.5-1.1.mga9 | 2.19.5-1.1.mga9 |
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 |
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 |
Show 13 moreShow less
| Package | Affected | Fixed |
|---|---|---|
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 |
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-50383 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-50383
github.com/advisories/GHSA-m6p4-vhgw-8c9c
Show 18 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50383.json
security-tracker.debian.org/tracker/CVE-2024-50383
advisories.mageia.org/MGASA-2025-0295.html
bugs.mageia.org/show_bug.cgi?id=34391
ubuntu.com/security/notices/USN-7586-1
ubuntu.com/security/CVE-2024-50383
cve.org/CVERecord?id=CVE-2024-50383
ubuntu.com/security/CVE-2024-34702
ubuntu.com/security/CVE-2024-34703
ubuntu.com/security/CVE-2024-39312
ubuntu.com/security/CVE-2024-50382
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