Skip to content

Commit 3c59c54

Browse files
1 parent 6ab0742 commit 3c59c54

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-h97m-27fx-42rx",
4+
"modified": "2026-06-04T14:50:47Z",
5+
"published": "2026-06-04T14:50:47Z",
6+
"aliases": [
7+
"CVE-2026-45057"
8+
],
9+
"summary": "matrix-sdk-ui: Incomplete edit validation",
10+
"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:security@matrix.org).\n\n[^1]: https://spec.matrix.org/unstable/client-server-api/#validity-of-replacement-events",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "crates.io",
21+
"name": "matrix-sdk-ui"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "0.16.1"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-h97m-27fx-42rx"
42+
},
43+
{
44+
"type": "WEB",
45+
"url": "https://github.com/matrix-org/matrix-rust-sdk/pull/6454"
46+
},
47+
{
48+
"type": "PACKAGE",
49+
"url": "https://github.com/matrix-org/matrix-rust-sdk"
50+
},
51+
{
52+
"type": "WEB",
53+
"url": "https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1"
54+
},
55+
{
56+
"type": "WEB",
57+
"url": "https://rustsec.org/advisories/RUSTSEC-2026-0158.html"
58+
}
59+
],
60+
"database_specific": {
61+
"cwe_ids": [
62+
"CWE-345"
63+
],
64+
"severity": "MODERATE",
65+
"github_reviewed": true,
66+
"github_reviewed_at": "2026-06-04T14:50:47Z",
67+
"nvd_published_at": null
68+
}
69+
}

0 commit comments

Comments
 (0)