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

Advisory record · `GHSA-j8cm-g7r6-hfpq`

- **Identifiers:** `GHSA-j8cm-g7r6-hfpq` · `CVE-2024-40640` · `RUSTSEC-2024-0354`
- **State:** Confirmed
- **Severity:** CVSS 2.9 Low
- **Critical:** No
- **Weakness (CWE):** [CWE-208](https://cwe.mitre.org/data/definitions/208.html)
- **Tags:** [CWE-208](https://agentprime.io/advisories/tag/cwe-208.md)
- **Published:** 17 Jul 2024
- **Updated:** 12 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 17 Jul 2024, 12:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `vodozemac` (crates.io): affected `>=0.0.0-0, <0.7.0`; fixed in `0.7.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Versions of vodozemac before 0.7.0 use a non-constant time base64 implementation when importing Megolm group session key material and PkDecryption Ed25519 secret keys. An attacker who can take highly precise timing measurements of repeated base64 encoding or decoding could infer limited information about the secret key material. Upgrade to vodozemac 0.7.0 or later.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 2.9 Low, CVSS 3.1: `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0020, the 9th percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:24 UTC: First seen by agentprime
- 31 Oct 2026, 14:24 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/RUSTSEC-2024-0354)

## Sources

- [GitHub Advisory Database: GHSA-j8cm-g7r6-hfpq](https://github.com/advisories/GHSA-j8cm-g7r6-hfpq)
- [OSV: GHSA-j8cm-g7r6-hfpq](https://osv.dev/vulnerability/GHSA-j8cm-g7r6-hfpq)
- <https://crates.io/crates/vodozemac>
- <https://rustsec.org/advisories/RUSTSEC-2024-0354.html>
- <https://github.com/matrix-org/vodozemac/commit/734b6c6948d4b2bdee3dd8b4efa591d93a61d272>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-j8cm-g7r6-hfpq>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-j8cm-g7r6-hfpq/>. Everything for agents: <https://agentprime.io/llms.txt>.
