Email me

Rust advisories / vodozemac

Vulnerability MediumRUSTSEC-2024-0354 · vodozemac

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

Short answerA security vulnerability in the vodozemac crate: Usage of non-constant time base64 decoder could lead to leakage of secret key material. GitHub rates it Medium. Fixed in 0.7.0: update to a fixed version.

Cratevodozemac
TypeVulnerability (crypto-failure, memory-exposure)
Affected versionsBefore 0.7.0.
Fixed in0.7.0
SeverityMedium (GitHub rating)
Published2024-07-17
Last changed2026-10-12
Also known asCVE-2024-40640, GHSA-j8cm-g7r6-hfpq

What to do

  1. See which version you have: cargo tree -i vodozemac (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p vodozemac. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example vodozemac = "0.7.0") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

Versions before 0.7.0 of vodozemac use a non-constant time base64 implementation for importing key material for Megolm group sessions and PkDecryption Ed25519 secret keys. This flaw might allow an attacker to infer some information about the secret key material through a side-channel attack.

Impact

The use of a non-constant time base64 implementation might allow an attacker to observe timing variations in the encoding and decoding operations of the secret key material. This could potentially provide insights into the underlying secret key material.

The impact of this vulnerability is considered low because exploiting the attacker is required to have access to high precision timing measurements, as well as repeated access to the base64 encoding or decoding processes. Additionally, the estimated leakage amount is bounded and low according to the referenced paper[[1]].

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for vodozemac

Full security history of vodozemac

Up next

Same cratevodozemac: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ