Home / matrix-org / vodozemac / CVE-2024-40640
CVE-2024-40640: is it exploited, and which versions of matrix-org vodozemac are affected and fixed?
CVE-2024-40640 is a timing side channel vulnerability in matrix-org vodozemac. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: vodozemac before 0.7.0 (GitHub advisory GHSA-j8cm-g7r6-hfpq). Fixed in 0.7.0 (GitHub advisory GHSA-j8cm-g7r6-hfpq). Severity: Low (2.9, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:28 UTC.
What is CVE-2024-40640?
Usage of non-constant time base64 decoder could lead to leakage of secret key material in vodozemac
vodozemac is an open source implementation of Olm and Megolm in pure Rust. 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. 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. This has been patched in commit 734b6c6948d4b2bdee3dd8b4efa591d93a61d272 which has been included in release version 0.7.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.
From the CVE record by GitHub_M, last updated August 2, 2024, 04:33 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| matrix-org | vodozemac | < 0.7.0 |
As the CVE record by GitHub_M states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| crates.io | vodozemac | < 0.7.0 | 0.7.0 | GHSA-j8cm-g7r6-hfpq |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 18, 2024. Summary: vodozemac's usage of non-constant time base64 decoder could lead to leakage of secret key material.
How severe is CVE-2024-40640?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.9 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-40640 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, July 17, 2024)
- EPSS
- 0.20% probability of exploitation activity in the next 30 days, percentile 10.4 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-208 Observable Timing Discrepancy
Where are the vendor advisories and references?
- https://github.com/matrix-org/vodozemac/security/advisories/GHSA-j8cm-g7r6-hfpq x_refsource_CONFIRM
- https://github.com/matrix-org/vodozemac/commit/734b6c6948d4b2bdee3dd8b4efa591d93a61d272 x_refsource_MISC
- https://arxiv.org/abs/2108.04600 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 8, 2024
- Published
- July 17, 2024, 17:27 UTC
- CVE record updated
- August 2, 2024, 04:33 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 07:46 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:28 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect vodozemac?
- May 3, 2024CVE-2024-34063 matrix-org vodozemac: insecure default setting
Questions about CVE-2024-40640
Is CVE-2024-40640 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 0.20% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of matrix-org vodozemac are affected by CVE-2024-40640?
vodozemac before 0.7.0, per the GitHub advisory GHSA-j8cm-g7r6-hfpq. The tables above give every range the sources list.
Which version fixes CVE-2024-40640?
0.7.0, per the GitHub advisory GHSA-j8cm-g7r6-hfpq. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-40640?
Low (2.9, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-40640?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.