# CVE-2024-40640: RUSTSEC-2024-0354 - Usage of non-constant time base64 decoder could lead to leakage of secret key material

Source: https://junglewise.ai/threats/cve-2024-40640-vodozemac-s-usage-of-non-constant-time-base64-decoder-could-lead  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-07-17  
License: CC BY 4.0 with a link back

CVE-2024-40640 · Severity: low · CVSS 3.1 · Published 2024-07-17

Usage of non-constant time base64 decoder could lead to leakage of secret key material

Technologies: [vodozemac (crates.io)](https://junglewise.ai/threats/technologies/vodozemac). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2024-40640 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-40640 being exploited in the wild.

**How severe is CVE-2024-40640?** Low severity, with a CVSS score of 3.1, published 17 July 2024.

**Which products and versions are affected?** vodozemac (crates.io) SEMVER:introduced=0,fixed=0.7.0, SEMVER:introduced=0.0.0-0,fixed=0.7.0.

**Is there a fix for CVE-2024-40640?** Yes. vodozemac (crates.io): upgrade to 0.7.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-40640?** Check whether you run vodozemac (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- vodozemac (crates.io): upgrade to 0.7.0 or later

  ```sh
  cargo update -p vodozemac
  ```


## Affected products

- vodozemac (crates.io) SEMVER:introduced=0,fixed=0.7.0, SEMVER:introduced=0.0.0-0,fixed=0.7.0

## Identifiers

- CVE-2024-40640
- GHSA-j8cm-g7r6-hfpq
- RUSTSEC-2024-0354

## Related threats

- [vodozemac degraded secret zeroization in cryptographic libraries](https://junglewise.ai/threats/rustsec-2026-0445-degraded-secret-zeroization-capabilities-1022d5f6)
- [vodozemac Olm key ratchet memory exposure](https://junglewise.ai/threats/rustsec-2026-0451-degraded-secret-zeroization-capabilities-e41f4f5c)
- [RUSTSEC-2024-0342 - Degraded secret zeroization capabilities](https://junglewise.ai/threats/cve-2024-34063-vodozemac-has-degraded-secret-zeroization-capabilities)
