CVE-2021-34813Matrix Olm
Critical 9.8 No auth needed
Follow: this CVE · Matrix · Matrix Olm We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 4.3% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Jun 16, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-787
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Matrix libolm before 3.2.3 allows a malicious Matrix homeserver to crash a client (while it is attempting to retrieve an Olm encrypted room key backup from the homeserver) because olm_pk_decrypt has a stack-based buffer overflow. Remote code execution might be possible for some nonstandard build configurations.
What to do
- Apply the vendor's security update for Olm.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| matrix | olm | < 3.2.3 |
Official sources
References
Links published by the sources. Open them with care.
- gitlab.matrix.org Patch Vendor Advisory
- gitlab.matrix.org Release Notes Vendor Advisory
- matrix.org Exploit Patch Vendor Advisory