原始 OSV JSON{
"id": "GHSA-h97m-27fx-42rx",
"aliases": [
"CVE-2026-45057"
],
"details": "### Impact\nThe message edit validation logic in the `matrix-sdk-ui` crate before 0.16.1 is missing a check: when replacing an encrypted event, the replacement event itself is not required to be encrypted. This enables a malicious homeserver administrator (or an actor with equivalent power) to impersonate or spoof messages as if they were sent by a victim user.\n\n### Patches\n`matrix-sdk-ui` 0.16.1 fixes the message edit validation logic to align with the algorithm for replacement events[^1] described in the Matrix specification.\n\n### Workarounds\nN/A\n\n### References\n* Pull request: https://github.com/matrix-org/matrix-rust-sdk/pull/6454\n\n### For more information\nIf you have any questions or comments about this advisory, please email us at [security at matrix.org](mailto:[email protected] ).\n\n[^1]: https://spec.matrix.org/unstable/client-server-api/#validity-of-replacement-events",
"summary": "matrix-sdk-ui: Incomplete edit validation",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.16.1"
}
]
}
],
"package": {
"name": "matrix-sdk-ui",
"ecosystem": "crates.io"
}
}
],
"modified": "2026-06-04T14:50:47Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N"
}
],
"published": "2026-06-04T14:50:47Z",
"references": [
{
"url": "https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-h97m-27fx-42rx",
"type": "WEB"
},
{
"url": "https://github.com/matrix-org/matrix-rust-sdk/pull/6454",
"type": "WEB"
},
{
"url": "https://github.com/matrix-org/matrix-rust-sdk",
"type": "PACKAGE"
},
{
"url": "https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1",
"type": "WEB"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2026-0158.html",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-345"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2026-06-04T14:50:47Z"
}
}