{"id":"CVE-2021-32659","published":"2021-06-16T18:45:11Z","modified":"2024-08-03T23:25:31Z","title":"Automatic room upgrade handling can be used maliciously to bridge a room non-consentually","vendor":"matrix-org","product":"matrix-appservice-bridge","tier":"tail","description":{"text":"Matrix-appservice-bridge is the bridging service for the Matrix communication program's application services. In versions 2.6.0 and earlier, if a bridge has room upgrade handling turned on in the configuration (the `roomUpgradeOpts` key when instantiating a new `Bridge` instance.), any `m.room.tombstone` event it encounters will be used to unbridge the current room and bridge into the target room. However, the target room `m.room.create` event is not checked to verify if the `predecessor` field contains the previous room. This means that any malicious admin of a bridged room can repoint the traffic to a different room without the new room being aware. Versions 2.6.1 and greater are patched. As a workaround, disabling the automatic room upgrade handling can be done by removing the `roomUpgradeOpts` key from the `Bridge` class options.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00936,"percentile":0.61688,"provenance":"source"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"references":[{"url":"https://github.com/matrix-org/matrix-appservice-bridge/security/advisories/GHSA-35g4-qx3c-vjhx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/matrix-appservice-bridge/commit/b69e745584a34fcfd858df33e4631e420da07b9f","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/matrix-appservice-bridge/releases/tag/2.6.1","tags":["x_refsource_MISC"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":12.34},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"matrix-appservice-bridge","versions":["< 2.6.1"]}],"affected":[{"ecosystem":"npm","package":"matrix-appservice-bridge","vulnerableRanges":["<2.6.1"],"patched":["2.6.1"],"from":["GHSA-35g4-qx3c-vjhx"],"provenance":"source"}],"euvd":{"id":"EUVD-2021-1248","exploited":false,"provenance":"source"}}