{"schemaVersion":3,"id":"CVE-2026-45057","aliases":["GHSA-h97m-27fx-42rx","RUSTSEC-2026-0158"],"status":"published","duplicateOf":null,"title":null,"description":"matrix-sdk-ui provides GUI-centric utilities on top of matrix-rust-sdk. The message edit validation logic in the  `matrix-sdk-ui` crate prior to 0.17.0 is missing a check: when replacing an encrypted event, the replacement event itself is not required to be encrypted. This enables a malicious homeserver administrators (or actors with equivalent power) to impersonate or spoof messages as if they were sent by a victim user. `matrix-sdk-ui` 0.17.0 fixes the message edit validation logic to align with the algorithm for replacement events[^1] described in the Matrix specification. No known workarounds are available.","dates":{"published":"2026-09-11T21:12:17.797Z","modified":"2026-09-14T16:18:19.287Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","exploitability":3.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00233,"percentile":0.13265,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.07800000000000001,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00155},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00233,"percentile":0.13265}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00233,"percentile":0.13265}]},"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-345","name":"Insufficient Verification of Data Authenticity","description":"The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/345.html"}],"affected":[{"vendor":"Crates.Io","product":"matrix-sdk-ui","name":"matrix-sdk-ui","label":"matrix-sdk-ui","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/matrix-sdk-ui","purlType":"cargo","versions":[{"text":"< 0.16.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.0.0-0, < 0.16.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.16.1 | ≥ 0.0.0-0, < 0.16.1","eol":null,"hubHref":null},{"vendor":"matrix-org","product":"matrix-sdk-ui","name":"matrix-sdk-ui","label":"matrix-sdk-ui","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.16.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.16.1","eol":null,"hubHref":"/vendor/matrix-org/matrix-sdk-ui"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-h97m-27fx-42rx","label":"github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-h97m-27fx-42rx","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/pull/6454","label":"github.com/matrix-org/matrix-rust-sdk/pull/6454","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1","label":"github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0158.html","label":"rustsec.org/advisories/RUSTSEC-2026-0158.html","hostname":"rustsec.org","tags":["X Refsource MISC","WEB","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://crates.io/crates/matrix-sdk-ui","label":"crates.io/crates/matrix-sdk-ui","hostname":"crates.io","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-09-11T21:12:17.797Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-14T16:18:19.287Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":20,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:31:07.015Z","stale":false,"partial":false}}