CVE-2022-39250
CVE-2022-39250 · Matrix JavaScript SDK vulnerable to key/device identifier confusion in SAS verification
Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.
Matrix JavaScript SDK is the Matrix Client-Server software development kit (SDK) for JavaScript. Prior to version 19.7.0, an attacker cooperating with a malicious homeserver could interfere with the verification flow between two users, injecting its own cross-signing user identity in place of one of the users’ identities. This would lead to the other device trusting/verifying the user identity under the control of the homeserver instead of the intended one. The vulnerability is a bug in the matrix-js-sdk, caused by checking and signing user identities and devices in two separate steps, and inadequately fixing the keys to be signed between those steps. Even though the attack is partly made possible due to the design decision of treating cross-signing user identities as Matrix devices on the server side (with their device ID set to the public part of the user identity key), no other examined implementations were vulnerable. Starting with version 19.7.0, the matrix-js-sdk has been modified to double check that the key signed is the one that was verified instead of just referencing the key by ID. An additional check has been made to report an error when one of the device ID matches a cross-signing key. As this attack requires coordination between a malicious homeserver and an attacker, those who trust their homeservers do not need a particular workaround.
CVSS 8.6 · Hoch · EPSS 1,2% · Korrektur verfügbar
- Veröffentlicht
- Aktualisiert
Technologie-Stack: system · node
Betroffene Produkte und Versionen
matrix-js-sdk
- Softwareversionen
- < 19.7.0: Betroffen
Keine Korrektur veröffentlicht
node-matrix-js-sdk Debian:11
- Softwareversionen
- 9.11.0+~cs9.9.16-1
- 9.11.0+~cs9.9.16-2
- 9.3.0+~cs9.9.16-2
- 9.7.0~~rc1+~cs9.9.16-1
- 9.7.0~~rc1+~cs9.9.16-2
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
matrix-js-sdk npm
- Betroffene Versionsbereiche
- SEMVER: < 19.7.0
Auf 19.7.0 aktualisieren
thunderbird Ubuntu:18.04:LTS
- Softwareversionen
- 1:52.4.0+build1-0ubuntu2
- 1:52.6.0+build1-0ubuntu1
- 1:52.7.0+build1-0ubuntu1
- 1:52.8.0+build1-0ubuntu0.18.04.1
- 1:52.9.1+build3-0ubuntu0.18.04.1
- 1:60.2.1+build1-0ubuntu0.18.04.2
- 1:60.4.0+build2-0ubuntu0.18.04.1
- 1:60.5.1+build2-0ubuntu0.18.04.1
- 1:60.6.1+build2-0ubuntu0.18.04.1
- 1:60.7.0+build1-0ubuntu0.18.04.1
- 1:60.7.1+build1-0ubuntu0.18.04.1
- 1:60.7.2+build2-0ubuntu0.18.04.1
- 1:60.8.0+build1-0ubuntu0.18.04.1
- 1:60.9.0+build1-0ubuntu0.18.04.1
- 1:68.2.1+build1-0ubuntu0.18.04.1
- 1:68.2.2+build1-0ubuntu0.18.04.1
- 1:68.4.1+build1-0ubuntu0.18.04.1
- 1:68.7.0+build1-0ubuntu0.18.04.1
- 1:68.8.0+build2-0ubuntu0.18.04.2
- 1:68.10.0+build1-0ubuntu0.18.04.1
- 1:78.8.1+build1-0ubuntu0.18.04.1
- 1:78.11.0+build1-0ubuntu0.18.04.2
- 1:78.13.0+build1-0ubuntu0.18.04.1
- 1:78.14.0+build1-0ubuntu0.18.04.1
- 1:78.14.0+build1-0ubuntu0.18.04.2
- 1:91.5.0+build1-0ubuntu0.18.04.1
- 1:91.7.0+build2-0ubuntu0.18.04.1
- 1:91.8.1+build1-0ubuntu0.18.04.1
- 1:91.9.1+build1-0ubuntu0.18.04.1
- 1:91.11.0+build2-0ubuntu0.18.04.1
- 1:102.2.2+build1-0ubuntu0.18.04.1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1:102.4.2+build2-0ubuntu0.18.04.1
Auf 1:102.4.2+build2-0ubuntu0.18.04.1 aktualisieren
thunderbird Ubuntu:20.04:LTS
- Softwareversionen
- 1:68.1.2+build1-0ubuntu1
- 1:68.1.2+build1-0ubuntu2
- 1:68.2.1+build1-0ubuntu1
- 1:68.2.2+build1-0ubuntu1
- 1:68.3.0+build2-0ubuntu1
- 1:68.3.1+build1-0ubuntu2
- 1:68.4.1+build1-0ubuntu1
- 1:68.4.2+build2-0ubuntu1
- 1:68.5.0+build1-0ubuntu1
- 1:68.6.0+build2-0ubuntu1
- 1:68.7.0+build1-0ubuntu1
- 1:68.7.0+build1-0ubuntu2
- 1:68.8.0+build2-0ubuntu0.20.04.2
- 1:68.10.0+build1-0ubuntu0.20.04.1
- 1:78.7.1+build1-0ubuntu0.20.04.1
- 1:78.8.1+build1-0ubuntu0.20.04.1
- 1:78.11.0+build1-0ubuntu0.20.04.2
- 1:78.13.0+build1-0ubuntu0.20.04.2
- 1:78.14.0+build1-0ubuntu0.20.04.1
- 1:78.14.0+build1-0ubuntu0.20.04.2
- 1:91.5.0+build1-0ubuntu0.20.04.1
- 1:91.7.0+build2-0ubuntu0.20.04.1
- 1:91.8.1+build1-0ubuntu0.20.04.1
- 1:91.9.1+build1-0ubuntu0.20.04.1
- 1:91.11.0+build2-0ubuntu0.20.04.1
- 1:102.2.2+build1-0ubuntu0.20.04.1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1:102.4.2+build2-0ubuntu0.20.04.1
Auf 1:102.4.2+build2-0ubuntu0.20.04.1 aktualisieren
node-matrix-js-sdk Ubuntu:20.04:LTS
- Softwareversionen
- 0.9.2-1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
node-matrix-js-sdk Ubuntu:22.04:LTS
- Softwareversionen
- 9.3.0+~cs9.9.16-2
- 9.11.0+~cs9.9.16-1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
thunderbird Ubuntu:22.04:LTS
- Softwareversionen
- 1:91.1.2+build1-0ubuntu1
- 1:91.3.0+build2-0ubuntu1
- 1:91.3.1+build1-0ubuntu1
- 1:91.3.2+build1-0ubuntu1
- 1:91.4.0+build1.1-0ubuntu1
- 1:91.4.0+build2-0ubuntu1
- 1:91.5.0+build1-0ubuntu1
- 1:91.5.1+build1-0ubuntu1
- 1:91.6.1+build1-0ubuntu1
- 1:91.7.0+build1-0ubuntu1
- 1:91.7.0+build2-0ubuntu1
- 1:91.8.0+build2-0ubuntu1
- 1:91.9.1+build1-0ubuntu0.22.04.1
- 1:91.11.0+build2-0ubuntu0.22.04.1
- 1:102.2.2+build1-0ubuntu0.22.04.1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1:102.4.2+build2-0ubuntu0.22.04.1
Auf 1:102.4.2+build2-0ubuntu0.22.04.1 aktualisieren
node-matrix-js-sdk Ubuntu:24.04:LTS
- Softwareversionen
- 9.11.0+~cs9.9.16-2
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
Originalquellen
- https://github.com/matrix-org/matrix-js-sdk/commit/a587d7c36026fe1fcf93dfff63588abee359be76
- https://github.com/matrix-org/matrix-js-sdk/releases/tag/v19.7.0
- https://matrix.org/blog/2022/09/28/upgrade-now-to-address-encryption-vulns-in-matrix-sdks-and-clients
- https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-5w8r-8pgj-5jmf
- https://security.gentoo.org/glsa/202210-35
- https://nvd.nist.gov/vuln/detail/CVE-2022-39250