CVE-2022-22779 in Keybase Clientinfo

Summary

by MITRE • 02/10/2022

The Keybase Clients for macOS and Windows before version 5.9.0 fails to properly remove exploded messages initiated by a user. This can occur if the receiving user switches to a non-chat feature and places the host in a sleep state before the sending user explodes the messages. This could lead to disclosure of sensitive information which was meant to be deleted from a user’s filesystem.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 02/13/2022

The vulnerability identified as CVE-2022-22779 represents a critical flaw in the Keybase client applications for both macOS and Windows platforms. This security issue affects versions prior to 5.9.0 and stems from improper handling of message deletion processes within the application's file system management. The flaw specifically manifests when users engage in chat interactions where messages are designed to self-destruct after a predetermined period, a feature commonly known as "exploding messages" in secure communication platforms.

The technical implementation of this vulnerability occurs through a race condition scenario that exploits the asynchronous nature of message processing and system state management. When a user initiates an exploding message and the receiving user switches to a non-chat feature while the host system enters a sleep state, the application fails to properly execute the deletion sequence. This creates a temporal window where sensitive data remains accessible on the filesystem despite being intended for automatic removal. The underlying issue lies in the client-side file management logic that does not adequately synchronize message lifecycle events with system power states, resulting in orphaned files that persist beyond their intended deletion timeframe.

From an operational security perspective, this vulnerability presents significant risks to user privacy and data protection. The persistence of deleted messages on the filesystem creates potential exposure points for sensitive information that users reasonably expect to be permanently removed. Attackers could potentially recover these orphaned files through forensic analysis or by exploiting the system's storage mechanisms, particularly if the device is compromised or if unauthorized access occurs during the window when files remain accessible. This vulnerability directly impacts the core security promise of secure messaging platforms where end-to-end encryption and message self-destruction are fundamental security features.

The flaw aligns with CWE-362, which describes a race condition vulnerability where the timing of operations creates security issues, and may also relate to CWE-200, concerning exposure of sensitive information. From the ATT&CK framework perspective, this vulnerability could be leveraged in techniques related to credential access and defense evasion, as it creates persistent data remnants that could be exploited by adversaries. The vulnerability's impact is amplified when considering that Keybase is designed for secure communications, making the exposure of deleted content particularly concerning for users who rely on the platform for sensitive discussions.

Mitigation strategies should focus on immediate application updates to version 5.9.0 or later, which contains the necessary fixes for proper message deletion handling. System administrators should implement monitoring for unusual file system access patterns that might indicate recovery of deleted content. Additionally, users should be educated about the importance of keeping their Keybase clients updated and should avoid leaving systems in sleep states during active chat sessions involving sensitive content. Organizations utilizing Keybase for secure communications should conduct vulnerability assessments to identify any potentially compromised data and implement additional forensic monitoring to detect unauthorized access to potentially recovered files.

Reservation

01/07/2022

Disclosure

02/10/2022

Moderation

accepted

CPE

ready

EPSS

0.00789

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!