CVE-2021-32659: matrix-org matrix-appservice-bridge
Vulnerability summary
CVE-2021-32659 is a medium (CVSS 6.5) vulnerability in matrix-org matrix-appservice-bridge. EPSS estimates a 0.94% chance of exploitation in the next 30 days, higher than 60.1% of scored vulnerabilities.
Timeline
- 16-06-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- NVDNIST4.9MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:NDiffers
EPSS trend
Probability
0.94%
Chance of exploitation in the next 30 days
Percentile
60%
Versus all other CVEs
30-day change
0.00 pp
From 0.94% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Matrix1 product
- matrix-appservice-bridge< 2.6.1
Matrix-org1 product
- matrix-appservice-bridge< 2.6.1
Npm1 product
- matrix-appservice-bridge< 2.6.1
3 vendors · 3 products
References
5 links- github.com/matrix-org/matrix-appservice-bridge/security/advisories/GHSA-35g4-qx3c-vjhxX Refsource CONFIRMWEBMitigationThird Party Advisory
- github.com/matrix-org/matrix-appservice-bridge/commit/b69e745584a34fcfd858df33e4631e420da07b9fX Refsource MISCWEBPatchThird Party Advisory
- github.com/matrix-org/matrix-appservice-bridge/releases/tag/2.6.1X Refsource MISCWEBPatchThird Party Advisory