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 key backup from the…

published June 16, 2021

CVSS
—
EPSS
4%
Percentile
91.0
In the wild
Unconfirmed
What it is

⚠️ A stack-based buffer overflow in Matrix libolm could let a rogue homeserver crash a client while it tries to retrieve encrypted backup keys – yikes! 😨 Think of it like a barista who mixes up the coffee orders, accidentally spilling hot espresso everywhere while trying to serve a customer. In this case, the homeserver is the clumsy barista and the client is left in a messy situation trying to retrieve its precious encrypted room key. If an attacker takes advantage of this flaw, they could potentially crash clients, leaving users locked out of their encrypted communications. While remote code execution might be possible under certain conditions, the main concern is the denial of service that keeps users from accessing their chats. Not ideal!

Put simply

Think of it like a barista who mixes up the coffee orders, accidentally spilling hot espresso everywhere while trying to serve a customer. In this case, the homeserver is the clumsy barista and the client is left in a messy situation trying to retrieve its precious encrypted room key. This vulnerability in libolm before version 3.2.3 stems from the olm_pk_decrypt function, which is susceptible to a stack-based buffer overflow during the key retrieval process. This could allow a malicious homeserver to disrupt client operations.

What to do

If an attacker takes advantage of this flaw, they could potentially crash clients, leaving users locked out of their encrypted communications. While remote code execution might be possible under certain conditions, the main concern is the denial of service that keeps users from accessing their chats. Not ideal! Upgrade to libolm version 3.2.3 or later to squash this bug and improve stability. Additionally, review your server configurations to ensure that they're not exposing unnecessary risks. Staying vigilant is key! You've got this! By updating your libraries, you'll help keep the communication secure. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.04262 · 91.0th percentile
Published
2021-06-16T17:11Z
EPSS history
Timeline
  • 16 JUN 17:11Z
    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…
    cvelistv5