{"id":"GHSA-4qg4-cvh2-crgg","summary":"matrix-sdk-crypto's `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 version 0.7.2 doesn't take into account the verification status of the user's own identity while performing the check and may as a result return a value contrary 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 a user identity, a malicious homeserver could manipulate the outcome in order to make the identity appear trusted. This is not a typical usage of the method, which lowers the impact. The method itself is not used inside the `matrix-sdk-crypto` crate.\n\n### Patches\n\nThe 0.7.2 release of the `matrix-sdk-crypto` crate includes a fix.\n\n### Workarounds\n\nNone.\n","aliases":["CVE-2024-40648","RUSTSEC-2024-0356"],"modified":"2026-09-10T03:50:16.296282253Z","published":"2024-07-18T15:28:07Z","database_specific":{"github_reviewed_at":"2024-07-18T15:28:07Z","nvd_published_at":"2024-07-18T17:15:05Z","cwe_ids":["CWE-287","CWE-863"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-4qg4-cvh2-crgg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40648"},{"type":"WEB","url":"https://github.com/matrix-org/matrix-rust-sdk/commit/76a7052149bb8f722df12da915b3a06d19a6695a"},{"type":"PACKAGE","url":"https://github.com/matrix-org/matrix-rust-sdk"},{"type":"WEB","url":"https://github.com/matrix-org/matrix-rust-sdk/releases/tag/0.7.2-crypto"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2024-0356.html"}],"affected":[{"package":{"name":"matrix-sdk-crypto","ecosystem":"crates.io","purl":"pkg:cargo/matrix-sdk-crypto"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/07/GHSA-4qg4-cvh2-crgg/GHSA-4qg4-cvh2-crgg.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"}]}