{"schemaVersion":3,"id":"CVE-2022-39252","aliases":["GHSA-vp68-2wrm-69qm","RUSTSEC-2022-0085"],"status":"published","duplicateOf":null,"title":null,"description":"matrix-rust-sdk is an implementation of a Matrix client-server library in Rust, and matrix-sdk-crypto is the Matrix encryption library. Prior to version 0.6, when a user requests a room key from their devices, the software correctly remembers the request. When the user receives a forwarded room key, the software accepts it without checking who the room key came from. This allows homeservers to try to insert room keys of questionable validity, potentially mounting an impersonation attack. Version 0.6 fixes this issue.","dates":{"published":"2022-09-29T14:15:14.000Z","modified":"2025-04-23T16:54:05.100Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.6,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0063,"percentile":0.49295,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.10899999999999999,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00521},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0063,"percentile":0.49295}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00521,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0063,"percentile":0.49295}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-287","name":"Improper Authentication","description":"When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/287.html"},{"id":"CWE-322","name":"Key Exchange without Entity Authentication","description":"The product performs a key exchange with an actor without verifying the identity of that actor.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/322.html"}],"affected":[{"vendor":"Crates.Io","product":"matrix-sdk-crypto","name":"matrix-sdk-crypto","label":"matrix-sdk-crypto","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/matrix-sdk-crypto","purlType":"cargo","versions":[{"text":"< 0.6.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.0.0-0, < 0.6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6.0 | ≥ 0.0.0-0, < 0.6.0","eol":null,"hubHref":null},{"vendor":"matrix-org","product":"matrix-rust-sdk","name":"matrix-rust-sdk","label":"matrix-rust-sdk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6","eol":null,"hubHref":"/vendor/matrix-org/matrix-rust-sdk"},{"vendor":"matrix","product":"matrix-rust-sdk","name":"matrix-rust-sdk","label":"matrix-rust-sdk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6","eol":null,"hubHref":"/vendor/matrix/matrix-rust-sdk"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-vp68-2wrm-69qm","label":"github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-vp68-2wrm-69qm","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Third Party Advisory"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/commit/093fb5d0aa21c0b5eaea6ec96b477f1075271cbb","label":"github.com/matrix-org/matrix-rust-sdk/commit/093fb5d0aa21c0b5eaea6ec96b477f1075271cbb","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/commit/41449d2cc360e347f5d4e1c154ec1e3185f11acd","label":"github.com/matrix-org/matrix-rust-sdk/commit/41449d2cc360e347f5d4e1c154ec1e3185f11acd","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.6.0","label":"github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.6.0","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39252","label":"nvd.nist.gov/vuln/detail/CVE-2022-39252","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk","label":"github.com/matrix-org/matrix-rust-sdk","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0085.html","label":"rustsec.org/advisories/RUSTSEC-2022-0085.html","hostname":"rustsec.org","tags":["WEB","Advisory"]},{"url":"https://crates.io/crates/matrix-sdk-crypto","label":"crates.io/crates/matrix-sdk-crypto","hostname":"crates.io","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-09-29T14:15:14.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T16:54:05.100Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T16:20:52.055Z","stale":false,"partial":false}}