{"schemaVersion":3,"id":"CVE-2021-44538","aliases":["MGASA-2021-0571","UBUNTU-CVE-2021-44538","DEBIAN-CVE-2021-44538"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-12-14T13:26:32.000Z","modified":"2024-08-04T04:25:16.851Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01984,"percentile":0.8029,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.06299999999999986,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01921},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01984,"percentile":0.8029}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01921,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01984,"percentile":0.8029}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"cinny_project","product":"cinny","name":"cinny","label":"cinny","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.6.0","eol":null,"hubHref":"/vendor/cinny_project/cinny"},{"vendor":"debian","product":"olm","name":"olm","label":"olm","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/olm","purlType":"deb","versions":[{"text":"< 3.2.8~dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.2.8~dfsg-1","eol":null,"hubHref":null},{"vendor":"debian","product":"thunderbird","name":"thunderbird","label":"thunderbird","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/thunderbird","purlType":"deb","versions":[{"text":"< 1:91.4.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:91.4.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-matrix-js-sdk","name":"node-matrix-js-sdk","label":"node-matrix-js-sdk","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-matrix-js-sdk","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"olm","name":"olm","label":"olm","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/olm","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"thunderbird","name":"thunderbird","label":"thunderbird","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/thunderbird","purlType":"deb","versions":[{"text":"< 1:91.5.0+build1-0ubuntu0.18.04.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1:91.5.0+build1-0ubuntu0.20.04.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1:91.5.0+build1-0ubuntu1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:91.5.0+build1-0ubuntu0.18.04.1 | < 1:91.5.0+build1-0ubuntu0.20.04.1 | < 1:91.5.0+build1-0ubuntu1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null},{"text":"10.0","noFixRecorded":false,"fixedIn":null},{"text":"11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0 | 10.0 | 11.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"mageia","product":"olm","name":"olm","label":"olm","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/olm","purlType":"rpm","versions":[{"text":"< 3.2.1-1.1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.2.1-1.1.mga8","eol":null,"hubHref":null},{"vendor":"matrix","product":"element","name":"element","label":"element","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.9.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.7","eol":null,"hubHref":"/vendor/matrix/element"},{"vendor":"matrix","product":"javascript_sdk","name":"javascript sdk","label":"javascript_sdk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.4.2, < 15.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.4.2, < 15.2.1","eol":null,"hubHref":"/vendor/matrix/javascript_sdk"},{"vendor":"matrix","product":"olm","name":"olm","label":"olm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.1.4, < 3.2.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.1.4, < 3.2.8","eol":null,"hubHref":"/vendor/matrix/olm"},{"vendor":"schildi","product":"schildichat","name":"schildichat","label":"schildichat","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.9.7-sc1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.7-sc1","eol":null,"hubHref":"/vendor/schildi/schildichat"}],"affectedCount":12,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://gitlab.matrix.org/matrix-org/olm/-/tags","label":"gitlab.matrix.org/matrix-org/olm/-/tags","hostname":"gitlab.matrix.org","tags":["X Refsource MISC","Product","Third Party Advisory"]},{"url":"https://matrix.org/blog/2021/12/13/disclosure-buffer-overflow-in-libolm-and-matrix-js-sdk","label":"matrix.org/blog/2021/12/13/disclosure-buffer-overflow-in-libolm-and-matrix-js-sdk","hostname":"matrix.org","tags":["X Refsource MISC","WEB","Patch","Vendor Advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5034","label":"www.debian.org/security/2022/dsa-5034","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00001.html","label":"lists.debian.org/debian-lts-announce/2022/01/msg00001.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0571.html","label":"advisories.mageia.org/MGASA-2021-0571.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29773","label":"bugs.mageia.org/show_bug.cgi?id=29773","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/CVE-2021-44538","label":"ubuntu.com/security/CVE-2021-44538","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://matrix.org/blog/2021/12/13/disclosure-buffer-overflow-in-libolm-and-matrix-js-sdk/","label":"matrix.org/blog/2021/12/13/disclosure-buffer-overflow-in-libolm-and-matrix-js-sdk/","hostname":"matrix.org","tags":["REPORT"]},{"url":"https://www.mozilla.org/en-US/security/advisories/mfsa2021-55/#CVE-2021-44538","label":"www.mozilla.org/en-US/security/advisories/mfsa2021-55/","hostname":"www.mozilla.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5246-1","label":"ubuntu.com/security/notices/USN-5246-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-5248-1","label":"ubuntu.com/security/notices/USN-5248-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-44538","label":"www.cve.org/CVERecord?id=CVE-2021-44538","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-44538","label":"security-tracker.debian.org/tracker/CVE-2021-44538","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-2874-1","DSA-5034-1","MGASA-2021-0584","OPENSUSE-SU-2022:0058-1","OPENSUSE-SU-2024:11698-1","SUSE-SU-2022:0058-1","USN-5248-1"],"duplicates":[],"related":["OPENSUSE-SU-2022:0058-1","OPENSUSE-SU-2024:11698-1","SUSE-SU-2022:0058-1","USN-5248-1"]},"timeline":[{"kind":"published","date":"2021-12-14T13:26:32.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T04:25:16.851Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T08:08:12.647Z","stale":false,"partial":false}}