{"id":"CVE-2024-40640","published":"2024-07-17T17:27:15Z","modified":"2024-08-02T04:33:11Z","title":"Usage of non-constant time base64 decoder could lead to leakage of secret key material in vodozemac","vendor":"matrix-org","product":"vodozemac","tier":"tail","description":{"text":"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.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":2.9,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00201,"percentile":0.10109,"provenance":"source"},"cwes":[{"id":"CWE-208","name":"Observable Timing Discrepancy"}],"references":[{"url":"https://github.com/matrix-org/vodozemac/security/advisories/GHSA-j8cm-g7r6-hfpq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/vodozemac/commit/734b6c6948d4b2bdee3dd8b4efa591d93a61d272","tags":["x_refsource_MISC"]},{"url":"https://arxiv.org/abs/2108.04600","tags":["x_refsource_MISC"]}],"priority":{"score":4.1,"factors":[{"name":"EPSS percentile","points":2.02},{"name":"CVSS severity","points":2.03}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"vodozemac","versions":["< 0.7.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-17T18:15:24.360907Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"vodozemac","vulnerableRanges":["<0.7.0",">=0.0.0-0, <0.7.0"],"patched":["0.7.0"],"from":["GHSA-j8cm-g7r6-hfpq","RUSTSEC-2024-0354"],"provenance":"source"}],"summary":{"text":"The flaw is a non-constant-time base64 implementation in vodozemac, the pure Rust implementation of Olm and Megolm, used when importing Megolm group session key material and Ed25519 secret keys for PkDecryption; versions before 0.7.0 are affected. An attacker with local access who can make high-precision timing measurements and repeatedly trigger base64 encoding or decoding of the secret material could infer limited information about that key material through a timing side channel, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:32Z"},"euvd":{"id":"EUVD-2024-2372","exploited":false,"provenance":"source"}}