CVE-2021-44538Matrix Element
Critical 9.8 No auth needed
Follow: this CVE · Matrix · Matrix Element We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 81
- Auth required
- No
- Published
- Dec 14, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-119
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Element.
- 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 | element | < 1.9.7 |
| matrix | element | < 1.9.7 |
| matrix | javascript_sdk | ≥ 2.4.2 < 15.2.1 |
| matrix | olm | ≥ 3.1.4 < 3.2.8 |
| schildi | schildichat | < 1.9.7-sc1 |
| schildi | schildichat | < 1.9.7-sc1 |
| cinny_project | cinny | < 1.6.0 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
Official sources
References
Links published by the sources. Open them with care.
- gitlab.matrix.org Product Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- matrix.org Patch Vendor Advisory
- www.debian.org Third Party Advisory