p PatchFirst

CVE-2022-39250

CVE-2022-39250 · Matrix JavaScript SDK vulnerable to key/device identifier confusion in SAS verification

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

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 · Élevée · EPSS 1,2% · Correctif disponible

Publication
Mise à jour

Pile logicielle: system · node

Produits et versions concernés

  • matrix-js-sdk

    Versions du logiciel
    • < 19.7.0: Concernée

    Aucun correctif publié

  • node-matrix-js-sdk Debian:11

    Versions du logiciel
    • 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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • matrix-js-sdk npm

    Plages de versions concernées
    • SEMVER: < 19.7.0

    Mettez à jour vers 19.7.0

  • thunderbird Ubuntu:18.04:LTS

    Versions du logiciel
    • 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
    Plages de versions concernées
    • ECOSYSTEM: < 1:102.4.2+build2-0ubuntu0.18.04.1

    Mettez à jour vers 1:102.4.2+build2-0ubuntu0.18.04.1

  • thunderbird Ubuntu:20.04:LTS

    Versions du logiciel
    • 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
    Plages de versions concernées
    • ECOSYSTEM: < 1:102.4.2+build2-0ubuntu0.20.04.1

    Mettez à jour vers 1:102.4.2+build2-0ubuntu0.20.04.1

  • node-matrix-js-sdk Ubuntu:20.04:LTS

    Versions du logiciel
    • 0.9.2-1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • node-matrix-js-sdk Ubuntu:22.04:LTS

    Versions du logiciel
    • 9.3.0+~cs9.9.16-2
    • 9.11.0+~cs9.9.16-1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • thunderbird Ubuntu:22.04:LTS

    Versions du logiciel
    • 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
    Plages de versions concernées
    • ECOSYSTEM: < 1:102.4.2+build2-0ubuntu0.22.04.1

    Mettez à jour vers 1:102.4.2+build2-0ubuntu0.22.04.1

  • node-matrix-js-sdk Ubuntu:24.04:LTS

    Versions du logiciel
    • 9.11.0+~cs9.9.16-2
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

Sources originales

Vérifiez votre serveur →