{"id":"RUSTSEC-2024-0354","summary":" Usage of non-constant time base64 decoder could lead to leakage of secret key material","details":"Versions before 0.7.0 of vodozemac use a non-constant time base64 implementation\nfor importing key material for Megolm group sessions and `PkDecryption` Ed25519\nsecret keys. This flaw might allow an attacker to infer some information about\nthe secret key material through a side-channel attack.\n\n## Impact\n\nThe use of a non-constant time base64 implementation might allow an attacker to\nobserve timing variations in the encoding and decoding operations of the secret\nkey material. This could potentially provide insights into the underlying secret\nkey material.\n\nThe impact of this vulnerability is considered low because exploiting the\nattacker is required to have access to high precision timing measurements, as\nwell as repeated access to the base64 encoding or decoding processes.\nAdditionally, the estimated leakage amount is bounded and low according to the\nreferenced paper[[1]].\n\n[1]: https://arxiv.org/abs/2108.04600","aliases":["CVE-2024-40640","GHSA-j8cm-g7r6-hfpq"],"modified":"2024-07-18T11:41:43.252813Z","published":"2024-07-17T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/vodozemac"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2024-0354.html"},{"type":"ADVISORY","url":"https://github.com/matrix-org/vodozemac/security/advisories/GHSA-j8cm-g7r6-hfpq"}],"affected":[{"package":{"name":"vodozemac","ecosystem":"crates.io","purl":"pkg:cargo/vodozemac"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.7.0"}]}],"ecosystem_specific":{"affects":{"arch":[],"functions":[],"os":[]},"affected_functions":null},"database_specific":{"cvss":null,"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0354.json","categories":["crypto-failure","memory-exposure"]}}],"schema_version":"1.7.3"}