{"id":"RUSTSEC-2024-0356","summary":"`UserIdentity::is_verified` not checking verification status of own user identity while performing the check","details":"The `UserIdentity::is_verified()` method in the matrix-sdk-crypto crate before\nversion 0.7.2 doesn't take into account the verification status of the user's\nown identity while performing the check and may as a result return a value\ncontrary to what is implied by its name and documentation.\n\n## Impact\n\nIf the method is used to decide whether to perform sensitive operations towards\na user identity, a malicious homeserver could manipulate the outcome in order to\nmake the identity appear trusted. This is not a typical usage of the method,\nwhich lowers the impact. The method itself is not used inside the\nmatrix-sdk-crypto crate.","aliases":["CVE-2024-40648","GHSA-4qg4-cvh2-crgg"],"modified":"2024-07-19T10:27:00.905214Z","published":"2024-07-18T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/matrix-sdk-crypto"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2024-0356.html"},{"type":"ADVISORY","url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-4qg4-cvh2-crgg"}],"affected":[{"package":{"name":"matrix-sdk-crypto","ecosystem":"crates.io","purl":"pkg:cargo/matrix-sdk-crypto"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.7.2"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"os":[],"arch":[],"functions":["matrix_sdk_crypto::UserIdentity::is_verified"]}},"database_specific":{"cvss":null,"categories":["crypto-failure"],"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0356.json"}}],"schema_version":"1.7.3"}