Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1xY3ZoLXA5anEtd3A4ds4ABARg

Malicious homeservers can steal message keys when the matrix-react-sdk user invites another user to a room

Impact

matrix-react-sdk before 3.102.0 allows a malicious homeserver to potentially steal message keys for a room when a user invites another user to that room, via injection of a malicious device controlled by the homeserver. This is possible because matrix-react-sdk before 3.102.0 shared historical message keys on invite.

Patches

matrix-react-sdk 3.102.0 disables sharing message keys on invite by removing calls to the vulnerable functionality.

Workarounds

None.

References

The vulnerability in matrix-react-sdk is caused by calling MatrixClient.sendSharedHistoryKeys in matrix-js-sdk, which is inherently vulnerable to this sort of attack. This matrix-js-sdk vulnerability is tracked as CVE-2024-47080 / GHSA-4jf8-g8wp-cx7c. Given that this functionality is not specific to sharing message keys on invite, is optional, has to be explicitly called by the caller and has been independently patched in matrix-react-sdk by removing the offending calls, we believe it is proper to treat the matrix-react-sdk vulnerability as a separate one, with its own advisory and CVE.

The matrix-org/matrix-react-sdk repository has recently been archived and the project was moved to element-hq/matrix-react-sdk. Given that this happened after the first patched release, no releases of the project on element-hq/matrix-react-sdk were ever vulnerable to this vulnerability.

Patching pull request: https://github.com/matrix-org/matrix-react-sdk/pull/12618.

For more information

If you have any questions or comments about this advisory, please email us at security at security at matrix.org.

Permalink: https://github.com/advisories/GHSA-qcvh-p9jq-wp8v
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1xY3ZoLXA5anEtd3A4ds4ABARg
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 6 hours ago
Updated: about 4 hours ago


Identifiers: GHSA-qcvh-p9jq-wp8v, CVE-2024-47824
References: Repository: https://github.com/matrix-org/matrix-react-sdk
Blast Radius: 0.0

Affected Packages

npm:matrix-react-sdk
Dependent packages: 7
Dependent repositories: 78
Downloads: 9,078 last month
Affected Version Ranges: >= 3.18.0, < 3.102.0
Fixed in: 3.102.0
All affected versions: 3.18.0, 3.19.0, 3.20.0, 3.21.0, 3.22.0, 3.23.0, 3.24.0, 3.25.0, 3.26.0, 3.27.0, 3.28.0, 3.28.1, 3.29.0, 3.29.1, 3.30.0, 3.31.0, 3.32.0, 3.32.1, 3.33.0, 3.34.0, 3.35.1, 3.36.0, 3.36.1, 3.37.0, 3.38.0, 3.39.0, 3.39.1, 3.40.0, 3.40.1, 3.41.0, 3.41.1, 3.42.0, 3.42.1, 3.42.3, 3.42.4, 3.43.0, 3.44.0, 3.45.0, 3.46.0, 3.47.0, 3.48.0, 3.49.0, 3.50.0, 3.51.0, 3.52.0, 3.53.0, 3.54.0, 3.55.0, 3.56.0, 3.57.0, 3.58.0, 3.58.1, 3.59.0, 3.59.1, 3.60.0, 3.61.0, 3.62.0, 3.63.0, 3.64.0, 3.64.1, 3.64.2, 3.65.0, 3.66.0, 3.67.0, 3.68.0, 3.69.0, 3.69.1, 3.70.0, 3.71.0, 3.71.1, 3.72.0, 3.73.0, 3.73.1, 3.74.0, 3.75.0, 3.76.0, 3.77.0, 3.77.1, 3.78.0, 3.79.0, 3.80.0, 3.80.1, 3.81.0, 3.81.1, 3.82.0, 3.83.0, 3.84.0, 3.84.1, 3.85.0, 3.86.0, 3.87.0, 3.88.0, 3.89.0, 3.90.0, 3.91.0, 3.92.0, 3.93.0, 3.94.0, 3.95.0, 3.96.0, 3.96.1, 3.97.0, 3.98.0, 3.99.0, 3.100.0, 3.101.0
All unaffected versions: 0.0.1, 0.0.2, 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.5.0, 0.5.1, 0.5.2, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.7.5, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.8.7, 0.8.8, 0.8.9, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 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