CVE-2024-50383 in Botan Project Botan
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 pr...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Botan Project | Botan | < 3.6.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.)
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-50383 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-046231-M |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Published | 2024-10-23 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-203: CWE-203
Related attack patterns (CAPEC)
CAPEC-189 Black Box Reverse Engineering via CWE-203
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Botan versions prior to 3.6.0 are vulnerable to a compiler-induced secret-dependent operation in the donna128 function, affecting cryptographic operations like Chacha-Poly1305 and x25519 when compiled with certain GCC versions on 32-bit processors.
The vulnerability arises from a compiler optimization that can skip an addition operation if a carry is not set, leading to a potential side-channel attack. This issue is specific to GCC versions 11.3.0 with -O2 optimization flags on MIPS and x86-i386 architectures.
Questions
What is CVE-2024-50383?
Botan versions prior to 3.6.0 are vulnerable to a compiler-induced secret-dependent operation in the donna128 function, affecting cryptographic operations like Chacha-Poly1305 and x25519 when compiled with certain GCC versions on 32-bit processors.
What is the CVSS score for CVE-2024-50383?
CVE-2024-50383 has CVSS 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.8%.
Is CVE-2024-50383 actively exploited?
No confirmed active exploitation of CVE-2024-50383 as of 2026-09-25.
How do I remediate CVE-2024-50383?
Priority: HIGH.
What systems are affected by CVE-2024-50383?
CVE-2024-50383 affects Botan Project Botan.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Botan Project","product":"Botan","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.