{"id":"CVE-2026-45057","title":"matrix-sdk-ui provides GUI-centric utilities on top of matrix-rust-sdk","summary":"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 i…","severity":"medium","cvss":4.9,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","cwe":["CWE-345"],"vendor":"matrix-org","product":"matrix-sdk-ui","affected":["matrix-sdk-ui < 0.16.1"],"published":"2026-09-11","updated":"2026-09-14","sourceUpdated":"2026-09-14T17:17:44.573","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-45057","references":[{"url":"https://github.com/matrix-org/matrix-rust-sdk/pull/6454","label":"security-advisories@github.com"},{"url":"https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1","label":"security-advisories@github.com"},{"url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-h97m-27fx-42rx","label":"security-advisories@github.com"},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0158.html","label":"security-advisories@github.com"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-45057.json"},{"url":"https://access.redhat.com/security/cve/CVE-2026-45057"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-45057"}],"tags":["nvd","cve.org","csaf","vex","red-hat"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-14T16:16:05.439558Z"},"epss":0.00155,"epssPercentile":0.05043,"ingestedAt":"2026-09-14T11:11:19.877Z","slug":"CVE-2026-45057","body":"## Overview\n\nmatrix-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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Vendor advisories\n\n- **Red Hat VEX** · updated 2026-09-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-45057.json)","depth":"sunlit","depthScore":27,"depthScoreParts":{"impact":27,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}