# CVE-2021-44538: The olmsessiondescribe function in Matrix libolm before 3.2.7 is vulnerable to a buffer overflow.

- 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): 2.00%, higher than 81% of CVEs (2026-12-02)
- Published: 2021-12-14T13:26:32.000Z
- Modified: 2026-06-17T04:12:32.310Z
- Weaknesses: CWE-119
- Assigned by: mitre

## Description

The olm_session_describe function in Matrix libolm before 3.2.7 is vulnerable to a buffer overflow. The Olm session object represents a cryptographic channel between two parties. Therefore, its state is partially controllable by the remote party of the channel. Attackers can construct a crafted sequence of messages to manipulate the state of the receiver's session in such a way that, for some buffer sizes, a buffer overflow happens on a call to olm_session_describe. Furthermore, safe buffer sizes were undocumented. The overflow content is partially controllable by the attacker and limited to ASCII spaces and digits. The known affected products are Element Web And SchildiChat Web.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- matrix element: before 1.9.7
- matrix javascript_sdk: from 2.4.2 before 15.2.1
- matrix olm: from 3.1.4 before 3.2.8
- schildi schildichat: before 1.9.7-sc1
- cinny_project cinny: before 1.6.0
- debian debian_linux: 9.0; 10.0; 11.0

## 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://gitlab.matrix.org/matrix-org/olm/-/tags> (product, third-party-advisory)
- <https://matrix.org/blog/2021/12/13/disclosure-buffer-overflow-in-libolm-and-matrix-js-sdk> (patch, vendor-advisory)
- <https://www.debian.org/security/2022/dsa-5034> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/01/msg00001.html> (mailing-list, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2021-44538 · Whole record: https://cve.day/CVE-2021-44538.json · Rebuilt by cve.day 2026-11-25T22:24:36.236Z
