Vulnerability · Published Sep 13, 2021 · Assigned by mitre
CVE-2021-40823
Medium 5.9
In plain English
A medium-severity security flaw in the element-web package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A logic error in the room key sharing functionality of matrix-js-sdk (aka Matrix Javascript SDK) before 12.4.1 allows a malicious Matrix homeserver present in an encrypted room to steal room encryption keys (via crafted Matrix protocol messages) that were originally sent by affected Matrix clients participating in that room. This allows the homeserver to decrypt end-to-end encrypted messages sent by affected clients.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | element-web | 1.8.4-r0 | ALPINE-CVE-2021-40823 |
| Alpine:v3.21 | element-web | 1.8.4-r0 | ALPINE-CVE-2021-40823 |
| Alpine:v3.22 | element-web | 1.8.4-r0 | ALPINE-CVE-2021-40823 |
| Alpine:v3.23 | element-web | 1.8.4-r0 | ALPINE-CVE-2021-40823 |
| Alpine:v3.24 | element-web | 1.8.4-r0 | ALPINE-CVE-2021-40823 |
| Ubuntu:22.04:LTS | node-matrix-js-sdk | no fix listed | UBUNTU-CVE-2021-40823 |
| Ubuntu:24.04:LTS | node-matrix-js-sdk | no fix listed | UBUNTU-CVE-2021-40823 |
| npm | matrix-js-sdk | 12.4.1 | GHSA-23cm-x6j7-6hq3 |
Affected products (as reported)
References
- https://github.com/matrix-org/matrix-js-sdk/releases/tag/v12.4.1 x_refsource_MISC
- https://matrix.org/blog/2021/09/13/vulnerability-disclosure-key-sharing x_refsource_MISC