# CVE-2021-34813: 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…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.26%, higher than 92% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-16T17:11:53.000Z
- Modified: 2026-06-17T03:56:36.990Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- matrix olm: before 3.2.3

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://matrix.org/blog/2021/06/14/adventures-in-fuzzing-libolm> (exploit, patch, vendor-advisory)
- <https://gitlab.matrix.org/matrix-org/olm/-/releases/3.2.3> (release-notes, vendor-advisory)
- <https://gitlab.matrix.org/matrix-org/olm/-/commit/ccc0d122ee1b4d5e5ca4ec1432086be17d5f901b> (patch, vendor-advisory)

## Sources

- CVE List: [CVE-2021-34813](https://www.cve.org/CVERecord?id=CVE-2021-34813), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-34813](https://nvd.nist.gov/vuln/detail/CVE-2021-34813), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-34813 · Whole record: https://cve.day/CVE-2021-34813.json · Rebuilt by cve.day 2026-11-25T22:58:01.960Z
