`UserIdentity::is_verified` not checking verification status of own user identity while performing the check
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. ## Impact If 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.
- Products
- matrix-sdk-crypto
- Affected versions
- Not specified
- Fixed versions
- 0.7.2
- CVEs
- CVE-2024-40648
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 08:44 UTC · Revision 1
Source evidence
`UserIdentity::is_verified` not checking verification status of own user identity while performing the check
core-osv · Original sourcePublished 18 Jul 2024, 12:00 UTC
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. ## Impact If 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.
osv:RUSTSEC-2024-0356
matrix-sdk-crypto
Fixed versions: 0.7.2
Complete source record
{
"id": "0b05feb294777df7746c2b2b1b139dead2e4a458f0ed9dfa929c2e2db3319247",
"url": "https://osv.dev/vulnerability/RUSTSEC-2024-0356",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "`UserIdentity::is_verified` not checking verification status of own user identity while performing the check",
"summary": "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. ## Impact If 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.",
"evidence": "osv:RUSTSEC-2024-0356",
"products": [
{
"name": {
"value": "matrix-sdk-crypto",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.7.2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "RUSTSEC-2024-0356",
"aliases": [
"CVE-2024-40648",
"GHSA-4qg4-cvh2-crgg",
"RUSTSEC-2024-0356"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.7.2"
}
]
}
],
"package": {
"name": "matrix-sdk-crypto",
"purl": "pkg:cargo/matrix-sdk-crypto",
"ecosystem": "crates.io"
},
"database_specific": {
"cvss": null,
"source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0356.json",
"categories": [
"crypto-failure"
],
"informational": null
},
"ecosystem_specific": {
"affects": {
"os": [],
"arch": [],
"functions": [
"matrix_sdk_crypto::UserIdentity::is_verified"
]
},
"affected_functions": null
}
}
],
"modified": "2026-10-12T18:00:12.405685687Z",
"provider": "osv",
"references": [
"https://crates.io/crates/matrix-sdk-crypto",
"https://rustsec.org/advisories/RUSTSEC-2024-0356.html",
"https://github.com/matrix-org/matrix-rust-sdk/commit/76a7052149bb8f722df12da915b3a06d19a6695a"
],
"provider_metadata": {
"license": "CC0-1.0"
}
},
"related_cves": [
{
"value": "CVE-2024-40648",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 306430,
"published_at": "2024-07-18T12:00:00+00:00"
}