Vulnerability · Published Dec 14, 2021 · Assigned by mitre
CVE-2021-44538
Critical 9.8
In plain English
A critical-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 2.0% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | element-web | 1.9.7-r0 | ALPINE-CVE-2021-44538 |
| Alpine:v3.21 | element-web | 1.9.7-r0 | ALPINE-CVE-2021-44538 |
| Alpine:v3.22 | element-web | 1.9.7-r0 | ALPINE-CVE-2021-44538 |
| Alpine:v3.23 | element-web | 1.9.7-r0 | ALPINE-CVE-2021-44538 |
| Alpine:v3.24 | element-web | 1.9.7-r0 | ALPINE-CVE-2021-44538 |
| Alpine:v3.20 | thunderbird | 91.4.1-r0 | ALPINE-CVE-2021-44538 |
| Alpine:v3.21 | thunderbird | 91.4.1-r0 | ALPINE-CVE-2021-44538 |
| Alpine:v3.22 | thunderbird | 91.4.1-r0 | ALPINE-CVE-2021-44538 |
| Alpine:v3.23 | thunderbird | 91.4.1-r0 | ALPINE-CVE-2021-44538 |
| Debian:12 | olm | 3.2.8~dfsg-1 | DEBIAN-CVE-2021-44538 |
| Debian:13 | olm | 3.2.8~dfsg-1 | DEBIAN-CVE-2021-44538 |
| Debian:14 | olm | 3.2.8~dfsg-1 | DEBIAN-CVE-2021-44538 |
| Debian:12 | thunderbird | 1:91.4.1-1 | DEBIAN-CVE-2021-44538 |
| Debian:13 | thunderbird | 1:91.4.1-1 | DEBIAN-CVE-2021-44538 |
| Debian:14 | thunderbird | 1:91.4.1-1 | DEBIAN-CVE-2021-44538 |
| Ubuntu:22.04:LTS | node-matrix-js-sdk | no fix listed | UBUNTU-CVE-2021-44538 |
| Ubuntu:24.04:LTS | node-matrix-js-sdk | no fix listed | UBUNTU-CVE-2021-44538 |
| Ubuntu:22.04:LTS | olm | no fix listed | UBUNTU-CVE-2021-44538 |
| Ubuntu:24.04:LTS | olm | no fix listed | UBUNTU-CVE-2021-44538 |
| Ubuntu:25.10 | olm | no fix listed | UBUNTU-CVE-2021-44538 |
| Ubuntu:26.04:LTS | olm | no fix listed | UBUNTU-CVE-2021-44538 |
| Ubuntu:26.10 | olm | no fix listed | UBUNTU-CVE-2021-44538 |
| Ubuntu:22.04:LTS | thunderbird | 1:91.5.0+build1-0ubuntu1 | UBUNTU-CVE-2021-44538 |
Affected products (as reported)
References
- https://gitlab.matrix.org/matrix-org/olm/-/tags x_refsource_MISC
- https://matrix.org/blog/2021/12/13/disclosure-buffer-overflow-in-libolm-and-matrix-js-sdk x_refsource_MISC
- DSA-5034 vendor-advisory, x_refsource_DEBIAN
- [debian-lts-announce] 20220104 [SECURITY] [DLA 2874-1] thunderbird security update mailing-list, x_refsource_MLIST