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.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
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-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- Severity
- Unknown
- CVSS
- Not scored
- Known Exploited
- No
- Published
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.
CVSS and timeline data
No CVSS vectors or timeline events were available in the normalized CVE source material.
Source materials
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
