LiveActive security incident?Get immediate response
CVE Record

CVE-2021-31855: KDE Messagelib through 5.17.0 reveals cleartext of encrypted messages in some situations.

KDE Messagelib through 5.17.0 reveals cleartext of encrypted messages in some situations. Deleting an attachment of a decrypted encrypted message stored on a remote server (e.g., an IMAP server) causes KMail to upload the decrypted content of the message to the remote server. With a crafted message, a user could be tricked into decrypting an encrypted message and then deleting an attachment attached to this message. If the attacker has access to the messages stored on the email server, then the attacker could read the decrypted content of the encrypted message. This occurs in ViewerPrivate::deleteAttachment in messageviewer/src/viewer/viewer_p.cpp.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This issue can unintentionally turn an encrypted email into cleartext on a remote mail server. In KMail, deleting an attachment from a decrypted encrypted message can cause decrypted message content to be uploaded back to an IMAP-like server. Risk is highest where attackers or insiders can access stored server-side mail.

Executive priority

Treat as a targeted confidentiality risk rather than a broad remote compromise. Prioritize patching for teams using KMail with encrypted email and shared or remotely administered mail servers.

Technical view

KDE Messagelib through 5.17.0 affected ViewerPrivate::deleteAttachment in messageviewer/src/viewer/viewer_p.cpp. When a decrypted encrypted message stored remotely has an attachment deleted, KMail may upload decrypted content to the remote server. A crafted message and user interaction are required, plus attacker access to server-stored messages.

Likely exposure

Organizations using KMail or KDE Messagelib through 5.17.0 with encrypted email stored on remote servers, such as IMAP, have the relevant exposure. Systems not using this mail workflow are unlikely to be affected based on the provided sources.

Exploitation context

The source bundle does not show KEV listing, public active exploitation, or CVSS scoring. Exploitation depends on social engineering or crafted email, user decryption, attachment deletion, and attacker access to remote mailbox storage.

Researcher notes

The key condition is state transition from decrypted local viewing to modified remote message storage after attachment deletion. Evidence names the affected function and upstream commit, but provided affected-product metadata is sparse and no exploit telemetry is cited.

Mitigation direction

  • Apply KDE or distribution packages containing the referenced Messagelib fix.
  • Prioritize users handling encrypted email over remote IMAP-like mail stores.
  • Avoid deleting attachments from decrypted encrypted messages until patched.
  • Review who can access server-side mailbox storage and backups.
  • Check KDE advisory and distribution guidance for supported fixed versions.

Validation and detection

  • Inventory endpoints running KMail or KDE Messagelib through 5.17.0.
  • Confirm installed packages include the upstream referenced fix.
  • Identify users relying on encrypted mail stored on remote servers.
  • Review mail server access controls for stored message exposure.
  • Assess whether affected users handled crafted or unexpected encrypted messages.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2021-31855 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.