CVE-2021-31855
NixOS vulnerability analysis and mitigation

Overview

KDE Messagelib through version 5.17.0 contains a security vulnerability (CVE-2021-31855) that reveals cleartext of encrypted messages in specific situations. The vulnerability was discovered and disclosed on April 29, 2021, affecting KMail and the messagelib component. When a user deletes an attachment from a decrypted encrypted message stored on a remote server (such as an IMAP server), KMail uploads the decrypted content of the message to the remote server (KDE Advisory).

Technical details

The vulnerability exists in the ViewerPrivate::deleteAttachment function in messageviewer/src/viewer/viewer_p.cpp. When deleting an attachment, the code incorrectly uses the decrypted message content instead of the original encrypted content when uploading the modified message back to the server. This implementation flaw causes the exposure of decrypted content that should remain encrypted (GitHub Commit). The vulnerability has been assigned a CVSS v3.1 Base Score of 6.5 (Medium) with vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

If exploited, an attacker with access to the email server could read the decrypted content of encrypted messages. The attack scenario involves tricking a user into first decrypting an encrypted message and then deleting an attachment from that message. The decrypted content would then be exposed on the email server, compromising the confidentiality of the encrypted communication (KDE Advisory).

Mitigation and workarounds

As a temporary workaround, users are advised not to delete attachments from encrypted messages. The permanent fix is available in messagelib version 5.17.1 and later. Alternatively, users can apply the patch provided in the KDE commit 3b5b171e91ce78b966c98b1292a1bcbc8d984799 (KDE Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management